Examples/NumberFormat/PosNegNumbers.ps1
try {Import-Module $PSScriptRoot\..\..\ImportExcel.psd1} catch {throw ; return} $file = "disks.xlsx" Remove-Item $file -ErrorAction Ignore $data = $( New-PSItem 100 -100 New-PSItem 1 -1 New-PSItem 1.2 -1.1 ) $data | Export-Excel -Path $file -Show -AutoSize -NumberFormat "0.#0;-0.#0" |