Added floating point formatting

+ Supports single and double precession formatting
+ Added Error handling from the formatting functions
This commit is contained in:
joeyahines committed 2021-10-09 09:30:02 -06:00
1 parent 9e5b0aafbd
commit 652682cb19
3 files changed
+107 -22

No files matched your search

+4 -1
View File
@@ -33,5 +33,8 @@ fn main() {
let data = parse_bytes_from_input_arg(args.data).unwrap();
println!("{}", format.format_data(&data));
match format.format_data(&data) {
Ok(data_str) => println!("{}", data_str),
Err(e) => println!("Unable to format data: {}", e)
}
}