Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
codegate
/
lua
Public
forked from
lua/lua
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
lua
lmathlib.c
on
v5.3.0
User selector
All users
All time
Commit history
Commits on Dec 27, 2014
bug: 'random' limit is 2^31-1, not RAND_MAX
roberto-ieru
committed
1a7868c
View commit details
Copy full SHA for 1a7868c
View code at this point
Browse repository at this point
Commits on Nov 7, 2014
cleaner test for overflow for range of 'math.random'
roberto-ieru
committed
17ca3b1
View commit details
Copy full SHA for 17ca3b1
View code at this point
Browse repository at this point
Commits on Nov 2, 2014
added include for 'lprefix.h', for stuff that must be added before
Show description for 28fdbcf
roberto-ieru
committed
28fdbcf
View commit details
Copy full SHA for 28fdbcf
View code at this point
Browse repository at this point
Commits on Oct 24, 2014
'lua_numtointeger' -> 'lua_numbertointeger'
roberto-ieru
committed
463edee
View commit details
Copy full SHA for 463edee
View code at this point
Browse repository at this point
Commits on Oct 8, 2014
added some casts for the cases when lua_Number != double
roberto-ieru
committed
65ec337
View commit details
Copy full SHA for 65ec337
View code at this point
Browse repository at this point
Commits on Oct 1, 2014
deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)
roberto-ieru
committed
798660c
View commit details
Copy full SHA for 798660c
View code at this point
Browse repository at this point
Commits on Jul 28, 2014
new function 'math.ult' (unsigned less than)
roberto-ieru
committed
925d1b5
View commit details
Copy full SHA for 925d1b5
View code at this point
Browse repository at this point
Commits on Jul 17, 2014
new conversion float->integer: conversion is valid only when
Show description for 8bb272a
roberto-ieru
committed
8bb272a
View commit details
Copy full SHA for 8bb272a
View code at this point
Browse repository at this point
Commits on Jul 16, 2014
detail (added placeholders for non-function fields to preallocate
Show description for f14662f
roberto-ieru
committed
f14662f
View commit details
Copy full SHA for f14662f
View code at this point
Browse repository at this point
Commits on Jun 30, 2014
detail (typos in comments)
roberto-ieru
committed
b9dcf99
View commit details
Copy full SHA for b9dcf99
View code at this point
Browse repository at this point
Commits on Jun 26, 2014
unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.)
Show description for a77d263
roberto-ieru
committed
a77d263
View commit details
Copy full SHA for a77d263
View code at this point
Browse repository at this point
Commits on Jun 18, 2014
'math.ifloor' is back
roberto-ieru
committed
e3871ab
View commit details
Copy full SHA for e3871ab
View code at this point
Browse repository at this point
Commits on Jun 2, 2014
'math.mof' works with integers, too
roberto-ieru
committed
3550375
View commit details
Copy full SHA for 3550375
View code at this point
Browse repository at this point
Commits on May 26, 2014
no more 'math.ifloor' + new semantics for 'math.floor'/'math.ceil'
roberto-ieru
committed
456806f
View commit details
Copy full SHA for 456806f
View code at this point
Browse repository at this point
Commits on May 14, 2014
several functions deprecated (cosh, sinh, atanh, pow, frexp, ldexp)
roberto-ieru
committed
8b66040
View commit details
Copy full SHA for 8b66040
View code at this point
Browse repository at this point
Commits on May 2, 2014
'math.fmod' handles integers as integers
roberto-ieru
committed
6d5324f
View commit details
Copy full SHA for 6d5324f
View code at this point
Browse repository at this point
Commits on Apr 17, 2014
'math.random(n,m)' interval restricted in size, to avoid using conversion
Show description for cbe4998
roberto-ieru
committed
cbe4998
View commit details
Copy full SHA for cbe4998
View code at this point
Browse repository at this point
Commits on Apr 10, 2014
math.random: use 'random' when available + changes to work correctly
Show description for 5336cc9
roberto-ieru
committed
5336cc9
View commit details
Copy full SHA for 5336cc9
View code at this point
Browse repository at this point
Commits on Apr 9, 2014
more precision for PI + no more RADIANS_PER_DEGREE +
Show description for fdd1372
roberto-ieru
committed
fdd1372
View commit details
Copy full SHA for fdd1372
View code at this point
Browse repository at this point
Commits on Apr 3, 2014
new constants 'math.maxint'/'math.minint'
roberto-ieru
committed
8b45d98
View commit details
Copy full SHA for 8b45d98
View code at this point
Browse repository at this point
Commits on Apr 1, 2014
some details to avoid warnings
roberto-ieru
committed
607be77
View commit details
Copy full SHA for 607be77
View code at this point
Browse repository at this point
Commits on Mar 31, 2014
math.abs, math.max, and math.min work for integers, too.
roberto-ieru
committed
66b7b9b
View commit details
Copy full SHA for 66b7b9b
View code at this point
Browse repository at this point
Commits on Jul 22, 2013
'debug.subtype' -> 'math.type' (to distinguish integers and floats)
roberto-ieru
committed
4244da9
View commit details
Copy full SHA for 4244da9
View code at this point
Browse repository at this point
Commits on Jul 10, 2013
'math.isfloat' replaced by 'debug.subtype'
roberto-ieru
committed
fcf99bf
View commit details
Copy full SHA for fcf99bf
View code at this point
Browse repository at this point
Commits on Jul 3, 2013
new function 'ifloor'
roberto-ieru
committed
cbe1641
View commit details
Copy full SHA for cbe1641
View code at this point
Browse repository at this point
Commits on Jun 25, 2013
'numbits' moved from 'math' to 'debug' library
roberto-ieru
committed
15fdbd2
View commit details
Copy full SHA for 15fdbd2
View code at this point
Browse repository at this point
avoid using 'modf' in the implementation of 'math.modf', to avoid
Show description for 80cdf39
roberto-ieru
committed
80cdf39
View commit details
Copy full SHA for 80cdf39
View code at this point
Browse repository at this point
Commits on Jun 13, 2013
'math.random' operates with integers when used for integer results
Show description for 788b251
roberto-ieru
committed
788b251
View commit details
Copy full SHA for 788b251
View code at this point
Browse repository at this point
Commits on May 26, 2013
support for the case when 'l_mathop' does not conform to lua_Number
Show description for 1414b71
roberto-ieru
committed
1414b71
View commit details
Copy full SHA for 1414b71
View code at this point
Browse repository at this point
Commits on May 6, 2013
new function 'math.numbits' (not a final decision)
roberto-ieru
committed
0233ce0
View commit details
Copy full SHA for 0233ce0
View code at this point
Browse repository at this point
Commits on May 2, 2013
new function 'math.isfloat'
roberto-ieru
committed
29fe3ab
View commit details
Copy full SHA for 29fe3ab
View code at this point
Browse repository at this point
Commits on Mar 7, 2013
second parameter to 'ldexp' is an integer
roberto-ieru
committed
8830901
View commit details
Copy full SHA for 8830901
View code at this point
Browse repository at this point
Commits on Jan 29, 2013
small improvement in the support of 'float' as lua_Number
roberto-ieru
committed
181a837
View commit details
Copy full SHA for 181a837
View code at this point
Browse repository at this point
Commits on May 18, 2012
allow "long double" precision for PI constant if needed
roberto-ieru
committed
3ac595d
View commit details
Copy full SHA for 3ac595d
View code at this point
Browse repository at this point
Commits on Jul 5, 2011
removed and deprecated functions really removed from the code base
roberto-ieru
committed
79cbc34
View commit details
Copy full SHA for 79cbc34
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.