📜  pi 的 rust 值 - Rust 代码示例

📅  最后修改于: 2022-03-11 14:49:25.143000             🧑  作者: Mango

代码示例1
use std::f64::consts::PI;

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

// or as a literal
const pi: f64 = 3.141592653589793;