Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  

Math.TextToNumber

Converts a text to a number.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Math 2.9 Yes Yes Yes Yes Yes

MBS( "Math.TextToNumber"; text { ; detect } )

Parameters

Parameter Description Example value
text Some text value where you want to get the number back. "123.456"
detect Optional
Pass 1 to detect comma vs. dot and interpret number right.
1

Result

Returns number.

Description

Converts a text to a number.
This function always uses english system (dot as decimal separator).

Examples

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)

See also

Example Databases


Math.PixelToMillimeter   -   MatrixDongle.Count

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins