Timwi <tim### [at] gmx net> wrote:
> Why does str() always return zeroes even for values that aren't zero?
Well, simple - because you're using it wrong ;)
The 3rd parameter controls the display precision of the fractional part in
powers of 0.1 (i.e. the number of digits to display after the decimal point);
setting it to zero therefore gives you only the integer part of the value. As
the numbers you intend to display are all quite small, POV will consequently
round them to zero.
Set the 3rd parameter to -1 to have POV automatically pick a (more or less)
suitable precision, or to e.g. 3 to have POV display the numbers to a precision
of 0.001.
Post a reply to this message
|