FloatToString not working

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
RGV250
Posts: 398
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 41 times
Been thanked: 40 times

FloatToString not working

Post by RGV250 »

Hi,
I have made a simple test example as the FloatToString function does not appear to work. This is in V11 but could be other versions?
It has an incrementing value but only shows the integer portion.
FloatToStringWebTest.fcweb
(12.91 KiB) Downloaded 9 times
Regards,
Bob

chipfryer27
Valued Contributor
Posts: 1877
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 409 times
Been thanked: 633 times

Re: FloatToString not working

Post by chipfryer27 »

Hi Bob

You haven't specified any precision so no decimal places are included.

FloatToString(x,3) would give x to three decimal places.

Regards

RGV250
Posts: 398
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 41 times
Been thanked: 40 times

Re: FloatToString not working

Post by RGV250 »

Hi,
Thanks for that, that will teach me to assume. On another compiler I use if you do not specify it shows the whole number and if a value is specified it limits the decimal places.

Bob

Post Reply