1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/docs/lib-parse_number.md
2017-03-29 13:51:34 +08:00

363 B

parse_number

Parses the string argument as an number. It depends on the split_str and the sub_str functions so remember to include split_str.scad and sub_str.scad.

Parameters

  • t : A string containing the number representation to be parsed.

Examples

echo(parse_number("10") + 1);    // ECHO: 11
echo(parse_number("-1.1") + 1);  // ECHO: -0.1