blob: dbe2c61c494fa0ee805a846bb2e4c86acc6816cf (
plain)
1
2
3
4
5
6
7
|
pub fn main() {
use std::f64;
let x = "NaN".to_string();
assert_eq!(format!("{}", f64::NAN), x);
assert_eq!(format!("{:e}", f64::NAN), x);
assert_eq!(format!("{:E}", f64::NAN), x);
}
|