You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/12/08 19:33:02 UTC

[GitHub] [arrow-rs] alamb edited a comment on issue #983: Remove scientific notation when converting floats to strings.

alamb edited a comment on issue #983:
URL: https://github.com/apache/arrow-rs/issues/983#issuecomment-989132112


   Instead of calling `c.1.to_string()` perhaps you could use something like this (untested):
   
   ```rust
   match c.1 {
     Field::Float(f) => format!("{}", f), // or however else you wanted to format floats 
     Feld::Double(f) => format!("{}", f), // or however else you wanted to format floats 
     _ => c.1.to_string()
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org