Files
ImportExcel/Examples/NumberFormat/PosNegNumbers.ps1
2018-07-05 16:14:56 -04:00

13 lines
269 B
PowerShell

try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
$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"