pub fn canonical(coef: &str, scale: u32) -> String
The value-canonical text of a decimal: trailing fraction zeros dropped, so 1.20 and 1.2 agree (a contract is about values, not scales).
1.20
1.2