1
0
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:
RustemB 2019-06-25 11:37:23 +05:00 committed by Alex Medvednikov
parent 0ec6578321
commit 64e0366424
2 changed files with 3 additions and 2 deletions

1
complex/complex.v Symbolic link
View File

@ -0,0 +1 @@
/home/rustemb/complex.v/complex.v

View File

@ -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 {