z3r0x
Civil/Environmental
- Sep 28, 2005
- 2
Im having a hard time figuring out why MathCAD is giving me weird results on an if statement:
db:=25mm
cover:=75mm
b1:=if(cover<3*db,1.5,1.2) b1=1.5
i found 2 solutions to this bug:
- change db and cover to meters
- turn off "use exact equality for boolean comparisons"
in worksheet options.
when i do either, MathCAD displays the correct b1 value, that is 1.2.
this seems a pretty notorious bug, unless im doing something wrong.
MathCAD v12.0, Windows XP SP2.
Comments?
db:=25mm
cover:=75mm
b1:=if(cover<3*db,1.5,1.2) b1=1.5
i found 2 solutions to this bug:
- change db and cover to meters
- turn off "use exact equality for boolean comparisons"
in worksheet options.
when i do either, MathCAD displays the correct b1 value, that is 1.2.
this seems a pretty notorious bug, unless im doing something wrong.
MathCAD v12.0, Windows XP SP2.
Comments?