Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Converts a text to a number.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Math | 2.9 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
text | Some text value where you want to get the number back. | "123.456" | |
detect | Pass 1 to detect comma vs. dot and interpret number right. | 1 | Optional |
Returns number.
Detect that number has dot as decimal divider and read number:
MBS("Math.TextToNumber"; "123,456.789"; 1)
Detect that number has comma as decimal divider and read number:
MBS("Math.TextToNumber"; "123.456,789"; 1)
This function is free to use.
Created 18th August 2014, last changed 27th October 2023