How to convert Sting value to double without rounding the values

My String is: 98.98
If I convert this to Double it’s rounding it to 99. Is there a way to get the same number 98.98 after conversion to double?

@faheem14

Did you use cdbl(“98.98”) only …it does keep it the same way

image

Cheers

When I am converting it to an integer it rounds it to 99

image
image

@faheem14

Obviously it will round…because integers dont have decimals…cdbl is to convert to double…integer are 1,2,3,-1 so on

If you want double use only cdbl

Cheers

Got it Thanks

1 Like