JanetDocsPlaygroundI'm feeling luckyGitHub sign in

int/u64



    cfunction
    src/core/inttypes.c on line 205, column 1

    (int/u64 value)

    Create a boxed unsigned 64 bit integer from a string value.


4 examplesSign in to add an example
Loading...
(try
  (int/u64 "18446744073709551616")
  ([e] e))
# => "bad u64 initializer: string"
sogaiuPlayground
(int/u64 "18_446_744_073_709_551_615")
# => <core/u64 18446744073709551615>
sogaiuPlayground
(int/u64 "18446744073709551615")
# => <core/u64 18446744073709551615>
sogaiuPlayground
(int/u64 42)    # => <core/u64 42>
(int/u64 42.1)  # => <core/u64 42>
(int/u64 "42")  # => <core/u64 42>
cellularmitosisPlayground