Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-arrow/src/compute/decimal.rs
8446 views
1
use polars_utils::relaxed_cell::RelaxedCell;
2
3
static TRIM_DECIMAL_ZEROS: RelaxedCell<bool> = RelaxedCell::new_bool(false);
4
5
pub fn get_trim_decimal_zeros() -> bool {
6
TRIM_DECIMAL_ZEROS.load()
7
}
8
9
pub fn set_trim_decimal_zeros(trim: Option<bool>) {
10
TRIM_DECIMAL_ZEROS.store(trim.unwrap_or(false))
11
}
12
13