Description
When casting the BigDecimal variable to double the value is getting zero
Error/Exception Message
No
Expected Behavior
The value should be correctly converted to double
Actual Behavior
The value is getting zero
Steps To Reproduce
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
var temp = BigDecimal.Pow(10, -1);
var value = new BigDecimal(99.00000001);
var res = BigDecimal.Divide(value, temp);
double res2 = (double)res;
Description When casting the BigDecimal variable to double the value is getting zero
Error/Exception Message No
Expected Behavior The value should be correctly converted to double
Actual Behavior The value is getting zero
Steps To Reproduce