mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
isolate issue
This commit is contained in:
parent
ab2ec925a3
commit
b2a7f62964
2 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue