1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-02 03:02:34 +02:00

added parse_number

This commit is contained in:
Justin Lin
2017-03-29 13:50:43 +08:00
parent 0b27893c59
commit ee632a9b2f
3 changed files with 45 additions and 0 deletions

12
docs/lib-parse_number.md Normal file
View File

@@ -0,0 +1,12 @@
# 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