mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
added math constants (they must be in PascalCase) (change radians)
This commit is contained in:
parent
0ec6578321
commit
64e0366424
1
complex/complex.v
Symbolic link
1
complex/complex.v
Symbolic link
@ -0,0 +1 @@
|
||||
/home/rustemb/complex.v/complex.v
|
@ -94,11 +94,11 @@ fn pow(a, b f64) f64 {
|
||||
}
|
||||
|
||||
fn radians(degrees f64) f64 {
|
||||
return degrees * (PI / 180.0)
|
||||
return degrees * (Pi / 180.0)
|
||||
}
|
||||
|
||||
fn degrees(radians f64) f64 {
|
||||
return radians * (180.0 / PI)
|
||||
return radians * (180.0 / Pi)
|
||||
}
|
||||
|
||||
fn round(f f64) f64 {
|
||||
|
Loading…
Reference in New Issue
Block a user