FIELD: codec field fixes, six-decimal real system variables

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-10-02 10:14:54 +03:00
1 parent 87211f4654
commit f830084be7
3 files changed
+5 -4

No files matched your search

+3 -2
View File
@@ -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.