discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Loop precision (==floating point precision ?)

LB
L Boyd
Fri, Nov 20, 2015 12:15 AM

For loops terminate when the next value would be greater than the max. Adding
a little bit to the max allows for flaying point representation errors.
If you don't like that, use a vector with the values you want rather than a
range.


Larry

View this message in context: http://forum.openscad.org/Loop-precision-floating-point-precision-tp14642p14659.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

For loops terminate when the next value would be greater than the max. Adding a little bit to the max allows for flaying point representation errors. If you don't like that, use a vector with the values you want rather than a range. ----- Larry -- View this message in context: http://forum.openscad.org/Loop-precision-floating-point-precision-tp14642p14659.html Sent from the OpenSCAD mailing list archive at Nabble.com.
LB
L Boyd
Fri, Nov 20, 2015 12:17 AM

I meant floating point representation errors.


Larry

View this message in context: http://forum.openscad.org/Loop-precision-floating-point-precision-tp14642p14660.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I meant floating point representation errors. ----- Larry -- View this message in context: http://forum.openscad.org/Loop-precision-floating-point-precision-tp14642p14660.html Sent from the OpenSCAD mailing list archive at Nabble.com.