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
1d82d07c
Commit
1d82d07c
authored
Mar 31, 2013
by
Masaki Muranaka
Committed by
Yukihiro "Matz" Matsumoto
Mar 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused functions.
parent
cbe7a87c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
36 deletions
+0
-36
src/numeric.c
src/numeric.c
+0
-36
No files found.
src/numeric.c
View file @
1d82d07c
...
...
@@ -671,42 +671,6 @@ flo_truncate(mrb_state *mrb, mrb_value num)
return
mrb_fixnum_value
((
mrb_int
)
f
);
}
/* 15.2.8.3.17 */
/*
* call-seq:
* num.floor -> integer
*
* Returns the largest integer less than or equal to <i>num</i>.
* <code>Numeric</code> implements this by converting <i>anInteger</i>
* to a <code>Float</code> and invoking <code>Float#floor</code>.
*
* 1.floor #=> 1
* (-1).floor #=> -1
*/
static
mrb_value
num_floor
(
mrb_state
*
mrb
,
mrb_value
num
)
{
return
flo_floor
(
mrb
,
mrb_Float
(
mrb
,
num
));
}
/* 15.2.8.3.20 */
/*
* call-seq:
* num.round([ndigits]) -> integer or float
*
* Rounds <i>num</i> to a given precision in decimal digits (default 0 digits).
* Precision may be negative. Returns a floating point number when ndigits
* is more than zero. <code>Numeric</code> implements this by converting itself
* to a <code>Float</code> and invoking <code>Float#round</code>.
*/
static
mrb_value
num_round
(
mrb_state
*
mrb
,
mrb_value
num
)
{
return
flo_round
(
mrb
,
mrb_Float
(
mrb
,
num
));
}
/*
* Document-class: Integer
*
...
...
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