math.TimeFraction
From GMod Wiki
Function | |
Syntax |
math.TimeFraction( Number Start, End, Current ) Where is this used? |
Description: | |
Takes the start, end, and current times and calculates what fraction of the total time the current time is. | |
Returns: | Number |
Part of Library: | Math |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.TimeFraction]Math.TimeFraction [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | What the code does |
---|---|
Used on | |
Code | function math.TimeFraction( Start, End, Current ) return ( Current - Start ) / ( End - Start ) end |
Output | A Fraction. |