Math methods

[System.Math] | Get-Member -Static -MemberType All
[Math] |Get-Member -Static -MemberType All

Examples

Pi

[Math]::pi

E

[Math]::e

Round

[Math]::Round(15.3421111, 2)

Square root

[Math]::Sqrt(64)

Power

[Math]::Pow(2,5)

Absolute

[Math]::Abs(-5)

Trig

Sine

[Math]::Sin(90)

Cosine

[Math]::Cos(90)

Tangent

[Math]::Tan(30)

Log

[Math]::Log10(1000)

DATA units

Write-Host "Values in Bytes:"
1KB
1MB
1GB
1TB
1PB