[SR-Users] Float Comparison
Alex Hermann
alex at speakup.nl
Thu Aug 25 13:08:06 CEST 2011
On Thursday 25 August 2011, Daniel-Constantin Mierla wrote:
> On 8/25/11 12:54 PM, Alex Hermann wrote:
> > If you just use fixed-point for fractional values, you can remove the dot
> > and convert to int.
> >
> > $(var(float){s.replace,.}{s.int})
>
> By fixed point do you mean when the fractional part has fixed length?
Yes.
There was a typo above, syntax should be:
$(var(float){s.replace,.,}{s.int})
--
Greetings,
Alex Hermann
More information about the sr-users
mailing list