Fundamentals9 / 16
Up next

Casting strings to numbers

# cast a string with a type accelerator
$n = [int]"5"
$d = [double]"3.14"
Write-Output ($n + 1)
Write-Output $d
What you're solving

type accelerators convert values