summaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-06-30 16:48:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-06-30 16:48:08 -0300
commitb9dcf9974d4dbff3ca28ff618259e277cb0090ea (patch)
tree66b903add6a56545bb50fda02d33baab24ba44d5 /lmathlib.c
parenta77d263e86feea55529800028f960d7124c1385f (diff)
downloadlua-github-b9dcf9974d4dbff3ca28ff618259e277cb0090ea.tar.gz
detail (typos in comments)
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 1e5c3ede..bdbb0aa1 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lmathlib.c,v 1.103 2014/06/18 12:35:53 roberto Exp roberto $
+** $Id: lmathlib.c,v 1.104 2014/06/26 18:38:28 roberto Exp roberto $
** Standard mathematical library
** See Copyright Notice in lua.h
*/
@@ -145,14 +145,14 @@ static int math_fmod (lua_State *L) {
static int math_modf (lua_State *L) {
if (lua_isinteger(L ,1)) {
lua_settop(L, 1); /* number is its own integer part */
- lua_pushnumber(L, 0); /* no fractionary part */
+ lua_pushnumber(L, 0); /* no fractional part */
}
else {
lua_Number n = luaL_checknumber(L, 1);
/* integer part (rounds toward zero) */
lua_Number ip = (n < 0) ? l_mathop(ceil)(n) : l_mathop(floor)(n);
pushnumint(L, ip);
- /* fractionary part (test needed for inf/-inf) */
+ /* fractional part (test needed for inf/-inf) */
lua_pushnumber(L, (n == ip) ? 0.0 : (n - ip));
}
return 2;