#!perl use Math::BigFloat; print ((new Math::BigFloat("1")) - exp(new Math::BigFloat("-7") / (new Math::BigFloat("10")**(new Math::BigFloat("17"))))); # Properly prints "0" # (well, something like 7e-17 would be closer, but I'll accept 0)