LiteRT-LM / PATCH.llguidance_numeric
SeaWolf-AI's picture
Upload full LiteRT-LM codebase
5f923cd verified
--- src/json/numeric.rs
+++ src/json/numeric.rs
@@ -20,6 +20,6 @@
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;
}