[] to evaluate (PI + 2)
PS R:\> invoke-expression ([math]::PI + 2)
5.14159265358979
[] to evaluate Sine 90 degree to nearest whole number
PS R:\> $d1 = [math]::Sin(90)
PS R:\> [math]::Round($d1)
1
[] to evaluate 2^32 and 2^64
PS R:\> [math]::Pow(2,32)
4294967296
PS R:\> [math]::Pow(2,64)
1.84467440737096E+19
Pow(2,49) is the maximum power to show a non expontient
[] to get the value in terms of TeraByte of 2^49
PS R:\> [math]::Pow(2,49)
562949953421312
PS R:\> [math]::Pow(2,49) /1TB
512
Monday, January 19, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment