H
hx
Guest
Hello,
I was trying to compare two parameters (float type) in a when
statement when I discovered strange results.
The parameters are coming, one from numeric value, and one is a
parameter of a PCell:
numVal = 0.95
PCParam = 0.95
Since my when loop was not working (when(numVal==PCParam) warn("OK")),
I have tried to display the value of my parameters and here is what I
had : - println(sprintf(nil "numVal : %.20f \n PCParam : %.20f"
numVal PCParam)) -
numVal = 0.94999999999999995559
PCParam = 0.95000000000000006661
Does any one know a way to tune float sensitivity?
HX
I was trying to compare two parameters (float type) in a when
statement when I discovered strange results.
The parameters are coming, one from numeric value, and one is a
parameter of a PCell:
numVal = 0.95
PCParam = 0.95
Since my when loop was not working (when(numVal==PCParam) warn("OK")),
I have tried to display the value of my parameters and here is what I
had : - println(sprintf(nil "numVal : %.20f \n PCParam : %.20f"
numVal PCParam)) -
numVal = 0.94999999999999995559
PCParam = 0.95000000000000006661
Does any one know a way to tune float sensitivity?
HX