nushell/crates/nu-parser/src
Loïc Riegel 1503ee09ba
Bugfix/loss of precision when parsing value with unit (#15606)
Closes #12858

# Description
As explained in the ticket, easy to reproduce. Example: 1.07 minute is
1.07*60=64.2 secondes
```nushell
# before - wrong
> 1.07min
1min 4sec

# now - right
> 1.07min
1min 4sec 200ms
```

# User-Facing Changes
Bug is fixed when using ``into duration``.

# Tests + Formatting
Added a test for ``into duration``
Fixed ``parse_long_duration`` test: we gained precision 😄 

# After Submitting
Release notes? Or blog is enough? Let me know
2025-04-19 17:02:40 -05:00
..
deparse.rs Fix quoting in to nuon and refactor quoting functions (#14180) 2024-10-29 07:43:26 -05:00
exportable.rs Restructure nu-protocol in more meaningful units (#11917) 2024-03-10 18:45:45 +01:00
flatten.rs fix: flatten of empty closures (#15374) 2025-03-21 06:35:18 -05:00
known_external.rs Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
lex.rs 14523 all comments should be prefixed with space tab or be beginning of token (#14616) 2024-12-25 21:31:51 +08:00
lib.rs Fix quoting in to nuon and refactor quoting functions (#14180) 2024-10-29 07:43:26 -05:00
lite_parser.rs Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
parse_keywords.rs fix(parser): comments in subexpressions of let/mut (#15375) 2025-03-25 21:28:06 +01:00
parse_patterns.rs Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
parse_shape_specs.rs udpate rust toolchain to rust 1.81.0 (#14473) 2024-11-29 21:46:58 +01:00
parser.rs Bugfix/loss of precision when parsing value with unit (#15606) 2025-04-19 17:02:40 -05:00
type_check.rs Rework operator type errors (#14429) 2025-02-12 20:03:40 -08:00