Hi guys,
This is definitely not a life-death issue, but...
Is there a way to insert Pi without the need to enter all the digits? I mean, with the attached patch I get funny things like sin 180 deg = -2. e-06, or sin 360= 4.4e-06
This is probably because one cannot enter the accurate value of Pi (I tried to, but Pd does not accept more than five digits after the point).
Honestly, I do want to see "0" when Pd calculates sin 180
Any suggestion (other than "go grab a beer")?
ymotion
-
Pi ?
-
i think you can use [pi], or
[1(
|
[atan]
|
[*4]any technology distinguishable from magic
is insufficiently advanced. -
Hi Sunji,
Thanks for your reply. I still get decimal values when calculating 180, 360, 540 in sin and 90, 270, 450 in cos (see attached file). Pd doesn't like ZEROs -
That's floating point for ya.
any technology distinguishable from magic
is insufficiently advanced. -
pi is an irrational number with an infinite number of digits, so you can only do an approximation of it with a finite number of bits. You can't really expect it to be perfect.