Clear trailing 0's on a double?

Posted by tarnfeld on Stack Overflow See other posts from Stack Overflow or by tarnfeld
Published on 2010-04-14T21:17:31Z Indexed on 2010/04/14 21:53 UTC
Read the original article Hit count: 132

Filed under:
|
|
|

I have a double integer thats got a value of something like 0.50000 but I just want 0.5 - Is there any way to get rid of those trailing 0's? :)

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about c