please can anyone explain to me why math.round does not work on corona [import]uid: 40990 topic_id: 12578 reply_id: 312578[/import]
There doesn’t appear to be a math.round().
Instead try using this: http://lua-users.org/wiki/SimpleRound. [import]uid: 54716 topic_id: 12578 reply_id: 45997[/import]
uh, math.round works fine in corona. i use it often.
what seems to be the problem? [import]uid: 13859 topic_id: 12578 reply_id: 45999[/import]
@ir8primates,
there is no math.round in LUA but it has been added to CoronaSDK.
cheers,
?
[import]uid: 3826 topic_id: 12578 reply_id: 46034[/import]
math.round works fine.
It returns a round number, eg, 1 rather than 1.2.
It doesn’t work in some OLD versions of Corona SDK but works in the newer builds, so if you get errors but your code is right, update.
API link; http://developer.anscamobile.com/reference/index/mathround
Peach
[import]uid: 52491 topic_id: 12578 reply_id: 46081[/import]