HPDFInvariantFormatSettings

Declaration

function HPDFInvariantFormatSettings: TFormatSettings;

Unit

HPDFTypes

Behaviour

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 rather than raising, HPDFInvariantStrToFloatDef returns a caller-supplied default for invalid text, and HPDFFormatInvariant2 formats with exactly two decimals

The identity helpers HPDFToSingle, HPDFToDouble and HPDFToExtended pin the evaluation precision down: each one hands its argument through its declared parameter type and returns it unchanged, so a value is stored and compared at Single, Double or Extended precision under every compiler instead of keeping x87 excess precision; an exact-Single representability check, for instance, writes HPDFToDouble(HPDFToSingle(V))=V

Related APIs

HPDFDoc public helper classes