How do I adjust the decimal places used/calculated for float-numbers?

Fractilion's icon

So I've been working on this patch that converts the value of [a/b] into a color code based on the numbers contained in each digit. In this case, i'm using the result of 1/7.

I was wondering how to calculate by more decimal places....

Let me know if this makes any sense. I have difficulty explaining math stuff.

1509.valueseparator.jpg
jpg
Peter Castine's icon

Max is calculating floats with 32 bit accuracy regardless of how many decimal places are displayed.

Roman Thilenius's icon

press edit and change that to 24. :)