Link to home
Start Free TrialLog in
Avatar of dmalovich
dmalovich

asked on

How to truncate and do not round 'double' number and convert to NSString for display

I have a double value as 1.095589665 for example. How can I convert this to a string for display and show 4 decimals without rounding? My result would be 1.0955.
ASKER CERTIFIED SOLUTION
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dmalovich
dmalovich

ASKER

Perfect, thank you.
You are welcome