forked from 1b-agent/opencadstudio-upstream
FIELD: codec field fixes, six-decimal real system variables
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
87211f4654
commit
f830084be7
3 files changed
+5
-4
No files matched your search
@@ -101,9 +101,10 @@ pub const SYSVARS: &[&str] = &[
|
||||
"userr4", "userr5",
|
||||
];
|
||||
|
||||
/// Real system variables show six decimals, as the reference shows them
|
||||
/// (TEXTSIZE 2.500000).
|
||||
fn num(v: f64) -> String {
|
||||
let t = format!("{v:.4}");
|
||||
t.trim_end_matches('0').trim_end_matches('.').to_string()
|
||||
format!("{v:.6}")
|
||||
}
|
||||
|
||||
/// A system variable's value as a field shows it.
|
||||
|
||||
Reference in new issue
Block a user