Skip to main content
1-Visitor
April 16, 2016
Question

float to int

  • April 16, 2016
  • 3 replies
  • 2705 views

could you write script float to intCapture.PNG

3 replies

24-Ruby IV
April 17, 2016

Sorry,

GAZ, MAZ, ZIL etc - it is cars!

What do you want to calculate?

23-Emerald IV
April 17, 2016

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

19-Tanzanite
April 17, 2016

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

25-Diamond I
April 17, 2016

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.

25-Diamond I
April 17, 2016

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.