floats always have radix point

main
Elfein Landers 2022-03-14 04:15:22 -07:00
parent caf15aaf0a
commit 6e26cfe85d
1 changed files with 7 additions and 0 deletions

View File

@ -48,9 +48,16 @@ fn hex_float(h: f64) -> String {
num_divides += 1;
if num_divides == e {
output.push('.');
} else {
println!["{num_divides}, {e}"];
}
}
if e == 0 {
output.push('.');
output.push('0');
}
if neg {
output.push('-');
}