Open Cap Table Protocol Canton SDK - v0.2.259
    Preparing search index...

    Function normalizeNumericString

    • Normalize a numeric string by removing trailing zeros after the decimal point. DAML returns numbers like "5000000.0000000000" but OCF expects "5000000". Also handles removing the decimal point if all fractional digits are zeros.

      Parameters

      • value: string | number

      Returns string

      OcpValidationError if the string contains scientific notation (e.g., "1.5e10") or is not a valid numeric string