HPDFInvariantFormatSettings
Declaration
function HPDFInvariantFormatSettings: TFormatSettings;
Unit
HPDFTypes
Behavior
Returns a TFormatSettings value with the decimal point pinned to '.' so PDF real-number syntax (ISO 32000-1 7.3.3) converts identically on decimal-comma locales such as de-DE or fr-FR without touching the global FormatSettings of the host application
Applications that parse or emit PDF-numeric text themselves, for example command-line confidence values, pass this value to the TFormatSettings overloads of FloatToStr, StrToFloat, and related RTL conversion routines
The sibling helpers wrap the same guarantee: HPDFFloatToInvariantStr formats a floating-point value, HPDFInvariantStrToFloat parses one and raises EConvertError on invalid text, HPDFTryInvariantStrToFloat returns a Boolean instead of raising, HPDFInvariantStrToFloatDef returns a caller-supplied default on invalid text, and HPDFFormatInvariant2 formats with exactly two decimals
The identity helpers HPDFToSingle, HPDFToDouble and HPDFToExtended pin evaluation precision: each returns its argument unchanged after passing it through its declared parameter type, so a value is stored and compared in Single, Double or Extended precision under every compiler instead of keeping x87 excess precision; an exact-Single representability check, for example, writes HPDFToDouble(HPDFToSingle(V))=V