I really wish Pd had a 32 bit integer data type for counters, and other places where integers are appropriate. <br><br>This problem with single precision floats is my #1 gripe/ buzz-killer....<br><br>(but overall, I am very, very happy with Pd!)<br><br>e.g. I spent aa few hours with it, but was unable to master the onset inlet of [tabread4~], and find the example to be highly contrived and hard to understand. <br><br>The Perl programming language had a very amazing mechanism. There is only a "scalar" datatype, which can be (depending on context), a character string, a float, or an integer. <br><br>There was some real genius under the hood which did automatic conversions when necessary, so the programmer didn't really have to worry about it. The runtime (a hybrid compiler/interpreter) always would do the right thing. <br><br>Not sure if there are any lessons from Perl we can borrow, or if the intelligence is to costly for real-time. <br><br>BH<br><br>On Saturday, February 27, 2016, s p <<a href="mailto:sebpiq@gmail.com">sebpiq@gmail.com</a>> wrote:<br>> Yes, I guessed the issue was with precision, but in that case why would anyone want to use it?<br>> I was about to use [zexy/time], but [utime] would have been so much simpler in my case ...<br>><br>> On Sat, Feb 27, 2016 at 10:23 AM, IOhannes m zmölnig <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>> wrote:<br>>><br>>> On 02/27/2016 12:34 AM, s p wrote:<br>>> > Hi!<br>>> ><br>>> > I am trying to use [utime] to get an absolute date in seconds since epoch.<br>>> > However, the number of seconds seems to be rounded, so I don't understand<br>>> > how is it of any use!? For example, the following patch prints 0 ...<br>>> ><br>>><br>>> short answer: single precision floating point precision.<br>>><br>>> depending on your use-case, you probably can use zexy's [date] and<br>>> [time] objects instead.<br>>><br>>> gmdsar<br>>> IOhannes<br>>><br>>><br>>><br>>> _______________________________________________<br>>> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>>> UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br>>><br>><br>><br>><br>> --<br>> Sébastien Piquemal<br>><br>>  ----- @sebpiq<br>>  ----- <a href="http://github.com/sebpiq">http://github.com/sebpiq</a><br>>  ----- <a href="http://funktion.fm">http://funktion.fm</a><br>><br><br>-- <br><div dir="ltr"><div><div dir="ltr">--<br>
May you, and all beings<br>
be happy and free from suffering :)<br>
-- ancient Buddhist Prayer (Metta)<br></div></div></div><br>