[OpenSCAD] what base language is used in OpenSCAD

MichaelAtOz oz.at.michael at gmail.com
Fri Apr 27 03:01:36 EDT 2018

khackbarth wrote
> I'd like to be able to convert a string to an integer in OpenSCAD.  For
> example:
> string = "11";
> number = xxx(string);
> echo(number);
> . produces:  ECHO: 11

In the production release there is no built-in for that.
There is a  WIP <https://github.com/openscad/openscad/pull/1380>  .

Here is a recursive function for this: hex-dec.scad

Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
Sent from: http://forum.openscad.org/

More information about the Discuss mailing list