mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
converted double to float64
SVN=126446
This commit is contained in:
parent
8e4ee0045f
commit
77e20e8cec
18 changed files with 141 additions and 145 deletions
|
|
@ -18,13 +18,13 @@ export asin, acos
|
|||
|
||||
const
|
||||
(
|
||||
pio2 = .15707963267948966192313216e1;
|
||||
pio2 = .15707963267948966192313216e1
|
||||
)
|
||||
|
||||
func
|
||||
asin(arg double)double
|
||||
asin(arg float64)float64
|
||||
{
|
||||
var temp, x double;
|
||||
var temp, x float64;
|
||||
var sign bool;
|
||||
|
||||
sign = false;
|
||||
|
|
@ -51,7 +51,7 @@ asin(arg double)double
|
|||
}
|
||||
|
||||
func
|
||||
acos(arg double)double
|
||||
acos(arg float64)float64
|
||||
{
|
||||
if(arg > 1 || arg < -1) {
|
||||
return sys.NaN();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue