1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib-parse_number.md
2017-03-30 14:22:48 +08:00

401 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

include <parse_number.scad>;

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