When I convert NSNumber
to NSDecimalNumber
this conversion is frequently not true.
I have a number like 92.43 when I convert this value to decimal or double [number decimalValue] or [number doubleValue] value changes as 92.4299999999..
I did so many things like [NSDecimalNumber decimalNumberWithDecimal:[number decimalValue] its always returns "92.429999" to this number.
How do I use NSNumber originalValue
decimal or double it is not matter I want to use "92.43" this number as "92.43". And Why this value changing?
If you just need to print this number then try:
This will round 92.4299999999.. on two decimals and result will be: