1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 06:08:31 +01:00
dotSCAD/docs/lib2x-parse_number.md

17 lines
318 B
Markdown
Raw Normal View History

2017-03-29 13:50:43 +08:00
# parse_number
2019-06-24 07:29:42 +08:00
The dir changed since 2.0.
2019-06-17 08:33:00 +08:00
Parses the string argument as an number.
2017-03-29 13:50:43 +08:00
## Parameters
2017-03-29 13:51:34 +08:00
- `t` : A string containing the number representation to be parsed.
2017-03-29 13:50:43 +08:00
## Examples
2020-01-28 17:51:20 +08:00
use <util/parse_number.scad>;
2017-03-30 14:22:48 +08:00
2017-03-29 13:50:43 +08:00
echo(parse_number("10") + 1); // ECHO: 11
echo(parse_number("-1.1") + 1); // ECHO: -0.1