cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

float to int

dbayasgalan
1-Newbie

float to int

could you write script float to intCapture.PNG

6 REPLIES 6

Sorry,

GAZ, MAZ, ZIL etc - it is cars!

What do you want to calculate?

LucMeekes
23-Emerald III
(To:dbayasgalan)

No script needed, use ceil() or floor() function depending on whether you you want the smallest larger or the largest smaller integer respectively.

Success1

Luc

RichardJ
19-Tanzanite
(To:LucMeekes)

Or just use the round() function, which will round up or down according to the generally accepted rules.

Richard Jackson wrote:

Or just use the round() function, which will round up or down according to the generally accepted rules.

We would have to use "Round" (capital R) because of the units.

RichardJ
19-Tanzanite
(To:Werner_E)

True. Actually also the case for Ceil and Floor.

Do you really want to round up the result an assign Np an integer value or would you rather simply want the result to be DISPLAYED as an integer?

In the latter case you may resort to the Math formatting ribbon and select the appropriate Display precison.

Top Tags