isokit: project layer, Studio GUI, MCP server, viewer, CLI, demo project and docs
This commit is contained in:
1 parent
95c80ec6b1
commit
564aeb75f6
47 files changed
+5978
-366
No files matched your search
@@ -16,7 +16,7 @@ pub fn r1(out: &mut String, v: f64) {
|
||||
}
|
||||
let a = t.unsigned_abs();
|
||||
let _ = write!(out, "{}", a / 10);
|
||||
if a % 10 != 0 {
|
||||
if !a.is_multiple_of(10) {
|
||||
let _ = write!(out, ".{}", a % 10);
|
||||
}
|
||||
}
|
||||
@@ -65,7 +65,7 @@ pub fn thousands(n: f64) -> String {
|
||||
let s = v.unsigned_abs().to_string();
|
||||
let mut o = String::new();
|
||||
for (i, ch) in s.chars().enumerate() {
|
||||
if i > 0 && (s.len() - i) % 3 == 0 {
|
||||
if i > 0 && (s.len() - i).is_multiple_of(3) {
|
||||
o.push(',');
|
||||
}
|
||||
o.push(ch);
|
||||
|
||||
Reference in new issue
Block a user