Spaces:
Running
Running
Download PATCH.llguidance_numeric from FINAL-Bench/LiteRT-LM: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/spaces/FINAL-Bench/LiteRT-LM/resolve/main/PATCH.llguidance_numeric
- Command line
-
hf download hf://spaces/FINAL-Bench/LiteRT-LM/PATCH.llguidance_numeric
-
curl -L -o PATCH.llguidance_numeric https://huggingface.co/spaces/FINAL-Bench/LiteRT-LM/resolve/main/PATCH.llguidance_numeric
278 Bytes
| --- src/json/numeric.rs | |
| +++ src/json/numeric.rs | |
| let mut coef = coef; | |
| let mut exp = exp; | |
| - while exp > 0 && coef.is_multiple_of(10) { | |
| + while exp > 0 && coef % 10 == 0 { | |
| coef /= 10; | |
| exp -= 1; | |
| } | |