Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
883b97ab
Commit
883b97ab
authored
Aug 01, 2012
by
Yukihiro Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some test requires double precision
parent
34cf0567
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/math.c
src/math.c
+1
-1
test/t/math.rb
test/t/math.rb
+1
-1
No files found.
src/math.c
View file @
883b97ab
...
...
@@ -647,7 +647,7 @@ mrb_init_math(mrb_state *mrb)
#endif
#ifdef MRB_USE_FLOAT
mrb_define_const
(
mrb
,
mrb_math
,
"TOLERANCE"
,
mrb_float_value
(
1e-
6
));
mrb_define_const
(
mrb
,
mrb_math
,
"TOLERANCE"
,
mrb_float_value
(
1e-
5
));
#else
mrb_define_const
(
mrb
,
mrb_math
,
"TOLERANCE"
,
mrb_float_value
(
1e-12
));
#endif
...
...
test/t/math.rb
View file @
883b97ab
...
...
@@ -12,7 +12,7 @@ if Object.const_defined?(:Math)
assert
(
'Fundamental trig identities'
)
do
result
=
true
N
=
1
5
N
=
1
3
N
.
times
do
|
i
|
a
=
Math
::
PI
/
N
*
i
ca
=
Math
::
PI
/
2
-
a
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment