Smtml.NumSourceTyped Values Representation. This module defines types and utilities for representing values with different numeric types, including integers and floating-point numbers. It also provides functions for type checking, comparison, formatting, and conversion.
The type t represents values with different numeric types.
type printer = [ | `PrettyHuman-readable format.
*)| `HexadecimalHexadecimal representation.
*)| `NoTypeHuman-readable format with no type information.
*) ]Representation options for value printing.
compare v1 v2 provides a total ordering over values of type t. It returns a negative integer if v1 is less than v2, zero if they are equal, and a positive integer if v1 is greater than v2.
set_default_printer p sets the default printer format for displaying values.
pp_no_type is a formatter that prints a value of type t without displaying its type.
of_string ty s attempts to parse the string s as a value of type ty. Returns Ok v on success, or an error message if parsing fails.
to_json v converts the value v into a JSON representation.