isolate issue

This commit is contained in:
Isak 2023-09-16 17:46:08 -04:00
parent ab2ec925a3
commit b2a7f62964
2 changed files with 6 additions and 1 deletions

View file

@ -373,7 +373,8 @@ impl RocDec {
write!(string, "{:019}", self.as_i128()).unwrap();
let is_negative = self.as_i128() < 0;
let decimal_location = string.len() - Self::DECIMAL_PLACES + (is_negative as usize);
let decimal_location = string.len() - Self::DECIMAL_PLACES;
dbg!(decimal_location, is_negative, string.len());
// skip trailing zeros
let last_nonzero_byte = string.trim_end_matches('0').len();