When I do this:
print (math.round ( 8.8 ))
I get this terminal output:
Runtime error
/Users/oj/Desktop/test/main.lua:11: attempt to call field ‘round’ (a nil value)
[import]uid: 13632 topic_id: 10554 reply_id: 310554[/import]
When I do this:
print (math.round ( 8.8 ))
I get this terminal output:
Runtime error
/Users/oj/Desktop/test/main.lua:11: attempt to call field ‘round’ (a nil value)
[import]uid: 13632 topic_id: 10554 reply_id: 310554[/import]
Hey,
Will look into this
Peach [import]uid: 52491 topic_id: 10554 reply_id: 38522[/import]
What is your CoronaSDK build?
math.round is recently added and it’s only available in last few daily builds…
You code works ok here, outputs (9)
E. [import]uid: 10478 topic_id: 10554 reply_id: 38528[/import]
Oops. I didn’t notice it was added recently.
Assumed the math stuff would be one of the first things to implement in the api.
I’m using build 484 and math.round is supported from 514.
Thanks [import]uid: 13632 topic_id: 10554 reply_id: 38529[/import]