mirror of
https://github.com/nushell/nushell.git
synced 2025-05-30 14:50:02 +02:00
updated round to support i64 (#3451)
This commit is contained in:
parent
20f6114617
commit
722f191e82
@ -66,6 +66,7 @@ fn operate(args: CommandArgs) -> Result<OutputStream, ShellError> {
|
|||||||
UntaggedValue::Primitive(Primitive::Decimal(val)) => {
|
UntaggedValue::Primitive(Primitive::Decimal(val)) => {
|
||||||
round_big_decimal(val, precision.into())
|
round_big_decimal(val, precision.into())
|
||||||
}
|
}
|
||||||
|
UntaggedValue::Primitive(Primitive::Int(val)) => UntaggedValue::int(val).into(),
|
||||||
other => round_default(other),
|
other => round_default(other),
|
||||||
});
|
});
|
||||||
Ok(mapped.to_output_stream())
|
Ok(mapped.to_output_stream())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user