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

15 lines
281 B
Markdown
Raw Normal View History

2017-03-29 13:50:43 +08:00
# parse_number
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
2021-02-10 15:45:07 +08:00
assert((parse_number("10") + 1) == 11);
assert((parse_number("-1.1") + 1) == -0.1);