Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust value of pi

use std::f64::consts::PI;

// or
let pi = std::f64::consts::PI;

// or as a literal
const pi: f64 = 3.141592653589793;
 
PREVIOUS NEXT
Tagged: #rust #pi
ADD COMMENT
Topic
Name
6+8 =