aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2019-04-27 16:58:37 +0100
committerNerdyPepper <[email protected]>2019-04-27 16:58:37 +0100
commit4c22b4b3bfb7b878d91b39b486a098215a053eb2 (patch)
tree1c22a31fe3c41b9013bde1856f0791319c2e9d97 /src
parent5b7f9c312d840b08848d78869ebd4b1d4702b79c (diff)
missed some diffs
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 3c7c815..28af074 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -132,8 +132,8 @@ fn radix_fmt(number: f64, obase: usize) -> Result<String, CalcError> {
132 132
133fn thousand_sep(inp: &str) -> String { 133fn thousand_sep(inp: &str) -> String {
134 let mut result_string = String::new(); 134 let mut result_string = String::new();
135 for (i,c) in inp.to_string().chars().rev().enumerate(){ 135 for (i,c) in inp.to_string().chars().rev().enumerate() {
136 if i % 3 == 0 && i != 0 && c.to_string() != "-"{ 136 if i % 3 == 0 && i != 0 && c.to_string() != "-" {
137 result_string.push(','); 137 result_string.push(',');
138 } 138 }
139 result_string.push(c) 139 result_string.push(c)