Function TParagraph.AsNumber(DecSep:Char) : Double

Unit: WPRTEDefs
Class: WPRTEDefs.TParagraph

Parameters

  • DecSep:Char

Returns

The type of the result value is Double.

Description

This function reads the first number in the paragraph and returns as double. The DecimalSeperator can be specified, if not the system locale will be used. Characters at the start and the end will be ignored. "," and "." will also be ignored. "-" is expected at the start of the number. If the reference is nil, 0 will be retuned.