SirniNamaz Posted September 25, 2012 Share Posted September 25, 2012 i have a variable which's value is 5.00 (not string), but when i want to output it to label, it is shown as 5, not 5.00 how do i fix this? Link to comment
Entity Posted September 25, 2012 Share Posted September 25, 2012 You want to make it show the last 2 decimals? Link to comment
DiSaMe Posted September 25, 2012 Share Posted September 25, 2012 string.format("%.2f",5) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now