Re: Approximate numbers Help
Posted: Thu Mar 24, 2016 11:21 am
hmm, maybe some multiplication and division trick using int?
But Ruby is prolly the way
But Ruby is prolly the way
DSP Robotics and FlowStone Graphical Programming Software Support and Forums
https://dsprobotics.com/support/
Yesnix wrote:But Ruby is prolly the way
thats not true, the format string does correct rounding...Nowhk wrote:Anyway, that's won't "round" really to the last digit, just "cut" the string.
Oh nice, your example seems to works better. In fact here the rounding is not the expected value:Nubeat7 wrote:thats not true, the format string does correct rounding...Nowhk wrote:Anyway, that's won't "round" really to the last digit, just "cut" the string.
this has been discussed several times here on the forum, here is one with different solutions:
http://www.dsprobotics.com/support/view ... 6&start=30