File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
function acos ( arg ) {
2
2
// discuss at: http://phpjs.org/functions/acos/
3
3
// original by: Onno Marsman
4
- // example 1: acos(0.3);
5
- // returns 1: 1.2661036727794992
4
+ // note: Sorry about the crippled test. Needed because precision differs accross platforms.
5
+ // example 1: (acos(0.3) + '').substr(0, 17);
6
+ // returns 1: "1.266103672779499"
6
7
7
8
return Math . acos ( arg ) ;
8
- }
9
+ }
Original file line number Diff line number Diff line change 1
1
function asin ( arg ) {
2
2
// discuss at: http://phpjs.org/functions/asin/
3
3
// original by: Onno Marsman
4
- // example 1: asin(0.3);
5
- // returns 1: 0.3046926540153975
4
+ // note: Sorry about the crippled test. Needed because precision differs accross platforms.
5
+ // example 1: (asin(0.3) + '').substr(0, 17);
6
+ // returns 1: "0.304692654015397"
6
7
7
8
return Math . asin ( arg ) ;
8
- }
9
+ }
You can’t perform that action at this time.
0 commit comments