WeBWorK Main Forum

fun_cmp with small coefficients

Re: fun_cmp with small coefficients

by Davide Cervone -
Number of replies: 0
That looks like it should work, but I don't know if anything has to be done to make it play nicely with the safe compartment stuff. It might need to be done in the DOCUMENT() call when other variables are set up.

The only consequence I can forsee would be if someone was doing string comparisons for numbers in scientific notation and used the "e" notation. There are also a couple of places where the "e" notation is handled specially in PG, and they might need tweaking. But other than that, I think it should be pretty painless (famous last words).

Davide