Little Number tweaks
This commit is contained in:
parent
149aa50fa9
commit
9cbf8d2d0d
4 changed files with 3 additions and 8 deletions
|
|
@ -7,13 +7,11 @@
|
|||
/// Scheme numbers are complex, literally.
|
||||
|
||||
#[derive(PartialEq, Debug)]
|
||||
pub struct Number { pub value: f64 }
|
||||
pub struct Number {
|
||||
pub value: f64
|
||||
}
|
||||
|
||||
impl Number {
|
||||
pub fn new() -> Number {
|
||||
Number { value: 0.0 }
|
||||
}
|
||||
|
||||
pub fn from_int(v: i64) -> Number {
|
||||
Number { value: v as f64 }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue