How can I tell perl that:
print (log(1000)/log(10)."\n");
print int(log(1000)/log(10))."\n";
should both give 3 (and not 2 which the last one surprisingly gives)?
I know why this happens (binary floats are not decimal floats). So I am not asking WHY it happens. I am asking HOW to tell perl to "do the right thing".