Trigonometric functions: Difference between revisions
Content added Content deleted
Line 3,497: | Line 3,497: | ||
===A More "PowerShelly" Way=== |
===A More "PowerShelly" Way=== |
||
I would send the output as an array of objects containing the (<code>[double]</code>) properties: '''Radians''' and '''Degrees'''. |
I would send the output as an array of objects containing the (<code>[double]</code>) properties: '''Radians''' and '''Degrees'''. |
||
Notice the difference between the last decimal place in the first two objects. If you were calculating coordinates as a civil engineer or land surveyor this difference could affect your measurments. Additionally, the output is an array of objects rather than an array of strings. |
Notice the difference between the last decimal place in the first two objects. If you were calculating coordinates as a civil engineer or land surveyor this difference could affect your measurments. Additionally, the output is an array of objects containing <code>[double]</code> values rather than an array of strings. |
||
<lang PowerShell> |
<lang PowerShell> |
||
$radians = [Math]::PI / 4 |
$radians = [Math]::PI / 4 |