float help

I am trying to make the text of something display only to a certain decimal point, i think it's something like %f or something however I am not so sure. I want vx and vy to display only to the second decimal point. How do i accomplish this?? thank you

I'm thinking...

1
string.format("%.2f",vx)
views:1650 update:2011/12/29 9:44:01
corona forums © 2003-2011