Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity tostring keep decimal part

// returns number with 2 decimal places
myFloat.ToString("0.00");
 
PREVIOUS NEXT
Tagged: #unity #tostring #decimal #part
ADD COMMENT
Topic
Name
5+5 =