i m struck n i need help urgently.
the problem is s1 is floating point number and it varies as 0.2,0.4,0.6......1.8,2.0,2.2 n so on
and ints1 is integer
in calculation i typed
ints1=s1
but its not working.
what i should do to approximate s1?
whats the method of converting floating point number into integer (rejecting the the value in decimal places).
how to approximate floating number into integer?
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: how to approximate floating number into integer?
Hello,
There is a function in the calculation icon that allows you to do this. The functions button in the calculation icon properties will show you all the available functions.
There is a function in the calculation icon that allows you to do this. The functions button in the calculation icon properties will show you all the available functions.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel