HexStrToLReal (FUN) ¶ FUNCTION HexStrToLReal : BOOL Converts a HexReal-string to a LREAL value. See DeserializeHexReal for a description of the format. Note This function also handles the case LREAL = REAL. InOut: Scope Name Type Comment Return HexStrToLReal BOOL Input str STRING The string to convert Output f LREAL
HexStrToReal (FUN) ¶ FUNCTION HexStrToReal : BOOL Converts a HexReal-string to a REAL value. See DeserializeHexReal for a description of the format. InOut: Scope Name Type Comment Return HexStrToReal BOOL Input str STRING The string to convert Output f REAL
LRealToHexStr (FUN) ¶ FUNCTION LRealToHexStr : STRING(32) Converts a LREAL value to a HexReal-string. See SerializeHexReal for a description of the format. Note This function also handles the case LREAL = REAL. InOut: Scope Name Type Return LRealToHexStr STRING(32) Input f LREAL
LRealToStr (FUN) ¶ FUNCTION LRealToStr : STRING(32) Converts LREAL values to a decimal representation, taking into account special values like NaN and infinity. Based on LREAL_TO_STRING. Note This function also handles the case LREAL = REAL. InOut: Scope Name Type Comment Return LRealToStr STRING(32) Input f LREAL The floating point value to convert.
RealToHexStr (FUN) ¶ FUNCTION RealToHexStr : STRING(32) Converts a REAL value to a HexReal-string. See SerializeHexReal for a description of the format. InOut: Scope Name Type Return RealToHexStr STRING(32) Input f REAL
RealToStr (FUN) ¶ FUNCTION RealToStr : STRING(16) Converts REAL values to a decimal representation, taking into account special values like NaN and infinity. Based on REAL_TO_STRING. InOut: Scope Name Type Comment Return RealToStr STRING(16) Input f REAL The floating point value to convert.
StrToLReal (FUN) ¶ FUNCTION StrToLReal : LREAL Converts a string to an LREAL value, taking into account the special values ‘NaN’, ‘+Inf’, and ‘-Inf’. Based on STRING_TO_LREAL. Note This function also handles the case LREAL = REAL. InOut: Scope Name Type Comment Return StrToLReal LREAL Input str STRING The string to convert
StrToReal (FUN) ¶ FUNCTION StrToReal : REAL Converts a string to a REAL value, taking into account the special values ‘NaN’, ‘+Inf’, and ‘-Inf’. Based on STRING_TO_REAL. InOut: Scope Name Type Comment Return StrToReal REAL Input str STRING The string to convert
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 20.04.2021, 15:17:29 companyName string 3S-Smart Software Solutions GmbH libraryFile FloatingPointUtils.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile FloatingPointUtils.clean.json version version 2.0.0.0 ProjectInformation IECCodeConverter bool True Released True LastModificationDateTime date 20.04.2021, 15:17:29 LibraryCategories library-category-list Intern|Utils Company string System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 DefaultNamespace FPU Description See: Description DocFormat reStructuredText LanguageModelAttribute qualified-access-only Placeholder FloatingPointUtils Project FloatingPointUtils Title FloatingPointUtils Version version 3.5.17.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces.