Mac OS X
Q: variable with two numbers after dot
hi all,
how can i specify variable to work with two (one, three) numbers only after dot?
e.q
set a to 3.14159265358 as (absent knowledge here)
return a
must returned 3.14
MacBook Pro, OS X El Capitan (10.11.2)
Posted on Aug 21, 2016 12:41 PM
by Niel,Solvedanswer
It’s a two-step process:
set A to 3.14159265358
set A to (round (A * 100)) / 100
The 100 can be changed as needed.
(144176)
Posted on Aug 21, 2016 12:43 PM
