Jump to content

Trigonometric functions: Difference between revisions

m
No edit summary
Line 3,497:
===A More "PowerShelly" Way===
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.
<lang PowerShell>
$radians = [Math]::PI / 4
308

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.