We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2017-07-05 09:11 PM
2017-07-06 03:20 AM
Tsepov wrote:2.4xxx will mathematically round to 2.0
Hello!
I need to mathimatic rounding:
0.0245 -> 0.03
But in this code
value = 0.0245
string_result = STR("%.2", value)
i have
0.02
May be i need to use STR{2} with extra accuracy flags...
But in documentation of GDL no examples ((
Please, help me!)
2017-07-06 02:35 PM
c = CEIL(-2.25 ) ! =-2 w = 25.276 w = CEIL(w) ! w=26So if you want it to remain Float you need to e.g.
con = 100 n = 0.0245 n * con ! n=2.45 n = CEIL(n) ! n=3 n = n / con ! n=0.03