Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Math.TextToNumber
Converts a text to a number.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Math | 2.9 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Math.TextToNumber"; text { ; detect } ) More
Parameters
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 |
Result
Returns number.
Description
Converts a text to a number.This function always uses english system (dot as decimal separator).
You may need to round number if needed.
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
- DynaPDF.FindText
- DynaPDF.GetImportPageBounds
- DynaPDF.OpenPDFFromContainer
- DynaPDF.Rectangle
- GMImage.FontTypeMetrics
- Math.DecodeNumber
- Math.NumberToText
Example Databases
- DynaPDF/Add Weblinks
- DynaPDF/Convert to 2 Pages
- DynaPDF/Form/Form
- DynaPDF/List Annotations
- GraphicsMagick/Text Wrap
Blog Entries
- Adding cutting lines for PDF in FileMaker
- Example Script for DynaPDF.FindText and DynaPDF.WebLink
- Create two page PDF document in FileMaker
- PDF Forms with MBS Plugin
- MBS FileMaker Plugin, version 5.1pr1
- MBS Filemaker Plugin, version 2.9pr1
FileMaker Magazin
This function is free to use.
Created 18th August 2014, last changed 27th October 2023