how to approximate floating number into integer?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
geetansh
Posts: 29
Joined: Tue Jun 21, 2011 4:23 pm
Has thanked: 3 times
Been thanked: 3 times

how to approximate floating number into integer?

Post by geetansh »

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).

User avatar
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?

Post by Benj »

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.

Post Reply