about summary refs log tree commit diff
path: root/example/std_example.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2019-07-27 16:51:48 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2019-07-27 16:52:00 +0200
commit436a24a85dd235743852359b990c66761ff3a4b1 (patch)
tree83c93c13f828f0bb93b0ec2c6ca3b0e9329fbc21 /example/std_example.rs
parentbdf23c02018ec87f30a24dd98c8ad4a8bfbf15dd (diff)
downloadrust-436a24a85dd235743852359b990c66761ff3a4b1.tar.gz
rust-436a24a85dd235743852359b990c66761ff3a4b1.zip
Implement many more float intrinsics
Diffstat (limited to 'example/std_example.rs')
-rw-r--r--example/std_example.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs
index a09e050ce3b..2a9df999559 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -30,6 +30,7 @@ fn main() {
     println!("{}", 2.3f32.ceil());
     println!("{}", 2.3f32.min(1.0));
     println!("{}", 2.3f32.max(1.0));
+    println!("{}", 2.3f32.powi(2));
 
     assert_eq!(0b0000000000000000000000000010000010000000000000000000000000000000_0000000000100000000000000000000000001000000000000100000000000000u128.leading_zeros(), 26);
     assert_eq!(0b0000000000000000000000000010000000000000000000000000000000000000_0000000000000000000000000000000000001000000000000000000010000000u128.trailing_zeros(), 7);