Struct napi::bindgen_prelude::BigInt [−][src]
Expand description
https://nodejs.org/api/n-api.html#napi_create_bigint_words The resulting BigInt is calculated as: (–1)^sign_bit (words[0] × (2^64)^0 + words[1] × (2^64)^1 + …)
Fields
sign_bit: bool
true for negative numbers
words: Vec<u64>
Implementations
(signed, value, lossless)
get the first word of the BigInt as u64
return true in the last element of tuple if the value is lossless
or the value is truncated
(value, lossless)
get the first word of the BigInt as i64
return true if the value is lossless
or the value is truncated
(value, lossless)
get the first two words of the BigInt as i128
return true if the value is lossless
or the value is truncated