### LogarithmNotation method example Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number formatted in logarithmic notation. ```lua print(InfiniteMath.new(1000):ScientificNotation()) -- e3.0 ``` -------------------------------- ### Create a basic InfiniteMath number with new Source: https://kdudedev.github.io/InfiniteMath/api Constructs a Number from a numeric literal. The example prints the result, which is `1`. ```lua print(InfiniteMath.new(1)) -- 1 ``` -------------------------------- ### ConvertForLeaderboards method example Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a number that can be used for OrderedDataStores to create global leaderboards that support InfiniteMath constructed numbers. ```lua print(InfiniteMath.new(1000):ConvertForLeaderboards()) -- 31000 ``` -------------------------------- ### aaNotation method example Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number formatted in double letter notation. Use the AALENGTHMAX property to adjust the max letters possible. ```lua print(InfiniteMath.new(1e+15):aaNotation()) -- 1a ``` -------------------------------- ### GetSuffix method example Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number and a suffix. By default, uses abbreviated suffix (1K). Passing true uses default behavior, false returns full suffix (1 Thousand). Suffixes go up to 1e+12000, after which it defaults to scientific notation. ```lua print(InfiniteMath.new(1000):GetSuffix()) -- 1K print(InfiniteMath.new(1000):GetSuffix(true)) -- 1K print(InfiniteMath.new(1000):GetSuffix(false)) -- 1 Thousand ``` -------------------------------- ### LogarithmNotation: Format number in logarithmic notation Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number formatted in logarithmic notation. The example shows 1000 formatted as e3.0. ```lua print(InfiniteMath.new(1000):ScientificNotation()) -- e3.0 ``` -------------------------------- ### Convert a leaderboard value back to a Number Source: https://kdudedev.github.io/InfiniteMath/api Converts a number previously created by `Number:ConvertForLeaderboards` back into a constructed Number. The example creates a value from 1000, converts it, then prints the result as `1K`. ```lua local ValueFromStore = InfiniteMath.new(1000):ConvertForLeaderboards() print(InfiniteMath:ConvertFromLeaderboards(ValueFromStore)) -- 1K ``` -------------------------------- ### ScientificNotation method examples Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number in scientific notation. For numbers reaching 1e+1000000, you can choose abbreviation mode for the exponent: default uses GetSuffix on exponent (1e+1M), true uses same, false uses scientific notation (1e+1e+6). Passing nil and false disables abbreviation and displays 1e+1000000. ```lua print(InfiniteMath.new(1000):ScientificNotation()) -- 1e+3 ``` ```lua print(InfiniteMath.new("1, 1e+6"):ScientificNotation()) -- 1e+1M print(InfiniteMath.new("1, 1e+6"):ScientificNotation(true)) -- 1e+1M print(InfiniteMath.new("1, 1e+6"):ScientificNotation(false)) -- 1e+1e+6 ``` ```lua print(InfiniteMath.new("1, 1e+6"):ScientificNotation(nil, false)) -- 1e+1000000 ``` -------------------------------- ### GetSuffix: Get abbreviated or full suffix Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number and a suffix at the end, up to 1e+12000; after that it defaults to scientific notation. By default it returns an abbreviated suffix (1K); true uses the default behavior, false returns the full suffix (1 Thousand). ```lua print(InfiniteMath.new(1000):GetSuffix()) -- 1K print(InfiniteMath.new(1000):GetSuffix(true)) -- 1K print(InfiniteMath.new(1000):GetSuffix(false)) -- 1 Thousand ``` -------------------------------- ### ScientificNotation: Format number in scientific notation Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number formatted in scientific notation. The example shows 1000 formatted as 1e+3. ```lua print(InfiniteMath.new(1000):ScientificNotation()) -- 1e+3 ``` -------------------------------- ### SetValue: Set number value without new metatable Source: https://kdudedev.github.io/InfiniteMath/api/Number Sets the value of a constructed number without creating a new Number metatable. Pass newFirst and newSecond; for example, to set the value to 100, pass 1, 3. The example shows setting 1000 to 5000 by passing 5, 4. ```lua local Number = InfiniteMath.new(1000) print(Number) -- 1000 Number:SetValue(5, 4) print(Number) -- 5000 ``` -------------------------------- ### ConvertFromLeaderboards Source: https://kdudedev.github.io/InfiniteMath/api Documentation for the ConvertFromLeaderboards static function of the InfiniteMath module. ```APIDOC ## ConvertFromLeaderboards ### Description Converts a number from a leaderboard format back to a regular number. This is a static function of the InfiniteMath module. ### Method static function ### Parameters - **value** (any) - Required - The value to convert from leaderboard format. ### Returns - **number** - The converted number. ``` -------------------------------- ### Convert ConvertForLeaderboards value back with InfiniteMath:ConvertFromLeaderboards Source: https://kdudedev.github.io/InfiniteMath/api/InfiniteMath Creates a number with InfiniteMath.new(1000), converts it for leaderboard storage, then prints the restored value (shown as 1K). Pass the leaderboard-stored number as the GivenNumber argument. ```lua local ValueFromStore = InfiniteMath.new(1000):ConvertForLeaderboards() print(InfiniteMath:ConvertFromLeaderboards(ValueFromStore)) -- 1K ``` -------------------------------- ### Load InfiniteMath number from datastore Source: https://kdudedev.github.io/InfiniteMath/docs/Datastore Recreates an InfiniteMath number from a saved datastore value using .new() to restore its metamethods. ```lua local Money = InfiniteMath.new(Data.Money) ``` -------------------------------- ### InfiniteMath.new Source: https://kdudedev.github.io/InfiniteMath/api Constructs a new InfiniteMath number from various input types. ```APIDOC ## InfiniteMath.new ### Description Returns a new InfiniteMath constructed number. You can use numbers, correctly formatted strings, tables, and other constructed numbers. ### Method new ### Parameters - **val** (number | string | table | Number) - Required - The value to construct. ### Request Example ```lua print(InfiniteMath.new(1)) -- 1 print(InfiniteMath.new("1,1000")) -- 10DTL print(InfiniteMath.new({1, 1000})) -- 10DTL ``` ### Response #### Success Response Returns a new InfiniteMath Number. ``` -------------------------------- ### Create large numbers with strings or tables using new Source: https://kdudedev.github.io/InfiniteMath/api To create numbers above 1e+308, pass a correctly formatted string like "1,1000" or a table {1, 1000}. Both produce the same result, printed as `10DTL`. ```lua print(InfiniteMath.new("1,1000")) -- 10DTL print(InfiniteMath.new({1, 1000})) -- 10DTL ``` -------------------------------- ### GetSuffix Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number and a suffix at the end, supporting abbreviations up to 1e+12000. By default, it returns an abbreviated suffix (e.g., 1K), but can be configured to return the full suffix (e.g., 1 Thousand). ```APIDOC ## GetSuffix ### Description Returns a string with the number and a suffix at the end, these suffixes will go up to 1e+12000. After, it will default to returning scientific notation. By default, it will return an abbreviated suffix (1K). Using true will use the default behavior. Using false will return the full suffix (1 Thousand). ### Method GetSuffix ### Parameters - **abbreviation** (boolean | nil) - Optional - If true or nil, returns abbreviated suffix (e.g., 1K). If false, returns full suffix (e.g., 1 Thousand). ### Request Example ```lua print(InfiniteMath.new(1000):GetSuffix()) -- 1K print(InfiniteMath.new(1000):GetSuffix(true)) -- 1K print(InfiniteMath.new(1000):GetSuffix(false)) -- 1 Thousand ``` ### Response #### Success Response - **string** - The formatted number with suffix. #### Response Example ```lua "1K" ``` ``` -------------------------------- ### InfiniteMath:ConvertFromLeaderboards Source: https://kdudedev.github.io/InfiniteMath/api Converts a leaderboard number back to an InfiniteMath number. ```APIDOC ## InfiniteMath:ConvertFromLeaderboards ### Description Returns a constructed number, and should be given a number created by `Number:ConvertForLeaderboards`. This is what you will display on global leaderboards using OrderedDataStores. ### Method ConvertFromLeaderboards ### Parameters - **GivenNumber** (number) - Required - The number from leaderboards. ### Request Example ```lua local ValueFromStore = InfiniteMath.new(1000):ConvertForLeaderboards() print(InfiniteMath:ConvertFromLeaderboards(ValueFromStore)) -- 1K ``` ### Response #### Success Response Returns a constructed Number. ``` -------------------------------- ### min Source: https://kdudedev.github.io/InfiniteMath/api Returns the smallest number among the given arguments. ```APIDOC ## min ### Description Returns the smallest number among the given arguments. ### Method static ### Parameters - **...** (number | string | table | Number) - Required - The numbers to compare. ### Returns - **Number** - The smallest Number. ``` -------------------------------- ### Save InfiniteMath number to datastore Source: https://kdudedev.github.io/InfiniteMath/docs/Datastore Saves an InfiniteMath number to a datastore. The number loses its metamethods when saved, so it must be recreated on load. ```lua local Money = InfiniteMath.new(1) Data.Money = Money ``` -------------------------------- ### ConvertForLeaderboards: Convert number for OrderedDataStores Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a number that you can use for OrderedDataStores in order to create global leaderboards that support InfiniteMath constructed numbers. ```lua print(InfiniteMath.new(1000):ConvertForLeaderboards()) -- 31000 ``` -------------------------------- ### InfiniteMath:ConvertFromLeaderboards Source: https://kdudedev.github.io/InfiniteMath/api/InfiniteMath Returns a constructed number from a number created by Number:ConvertForLeaderboards. Used for displaying on global leaderboards with OrderedDataStores. ```APIDOC ## InfiniteMath:ConvertFromLeaderboards(GivenNumber) ### Description Returns a constructed number, and should be given a number created by `Number:ConvertForLeaderboards`. This is what you will display on global leaderboards using OrderedDataStores. ### Parameters - **GivenNumber** (number) - Required - The number from ConvertForLeaderboards. ### Returns - **Number** - The constructed InfiniteMath number. ### Example ```lua local ValueFromStore = InfiniteMath.new(1000):ConvertForLeaderboards() print(InfiniteMath:ConvertFromLeaderboards(ValueFromStore)) -- 1K ``` ``` -------------------------------- ### log10 Source: https://kdudedev.github.io/InfiniteMath/api Returns the base-10 logarithm of x. ```APIDOC ## log10 ### Description Returns the base-10 logarithm of x. ### Method static ### Parameters - **Num** (number | string | table | Number) - Required - The number to take the base-10 logarithm of. ### Returns - **Number** - The base-10 logarithm. ``` -------------------------------- ### InfiniteMath.modf Source: https://kdudedev.github.io/InfiniteMath/api Returns the integral and fractional parts of a number. ```APIDOC ## InfiniteMath.modf ### Description Returns both the integral part of n and the fractional part (if there is one). ### Method modf ### Parameters - **Num** (number | string | table | Number) - Required - The number to decompose. ### Response #### Success Response Returns the integral part and fractional part as Numbers. ``` -------------------------------- ### InfiniteMath.min Source: https://kdudedev.github.io/InfiniteMath/api Returns the smallest number among the given arguments. ```APIDOC ## InfiniteMath.min ### Description Returns the smallest number among the given arguments. ### Method min ### Parameters - **...** (number | string | table | Number) - Required - The numbers to compare. ### Response #### Success Response Returns the smallest Number. ``` -------------------------------- ### aaNotation: Format number in double letter notation Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number formatted in double letter notation. Use the AALENGTHMAX property to adjust the max letters possible. ```lua print(InfiniteMath.new(1e+15):aaNotation()) -- 1a ``` -------------------------------- ### InfiniteMath.clamp Source: https://kdudedev.github.io/InfiniteMath/api Clamps a number between a minimum and maximum value. ```APIDOC ## InfiniteMath.clamp ### Description Clamps a number between a minimum and maximum value. ### Method clamp ### Parameters - **Num** (number | string | table | Number) - Required - The number to clamp. - **Min** (number | string | table | Number) - Required - The minimum value. - **Max** (number | string | table | Number) - Required - The maximum value. ### Response #### Success Response Returns the clamped Number. ``` -------------------------------- ### ConvertForLeaderboards Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a number that can be used for OrderedDataStores to create global leaderboards that support InfiniteMath constructed numbers. ```APIDOC ## ConvertForLeaderboards ### Description Returns a number that you can use for OrderedDataStores in order to create global leaderboards that support InfiniteMath constructed numbers. ### Method ConvertForLeaderboards ### Parameters None ### Request Example ```lua print(InfiniteMath.new(1000):ConvertForLeaderboards()) -- 31000 ``` ### Response #### Success Response - **number** - A number suitable for use in OrderedDataStores. #### Response Example ```lua 31000 ``` ``` -------------------------------- ### InfiniteMath.sign Source: https://kdudedev.github.io/InfiniteMath/api Returns the sign of a number. ```APIDOC ## InfiniteMath.sign ### Description Returns the sign of the number. Negative numbers return -1, positive numbers return 1, 0 returns 0. ### Method sign ### Parameters - **Num** (number | string | table | Number) - Required - The number to get the sign of. ### Response #### Success Response Returns the sign as a number. ``` -------------------------------- ### LogarithmNotation Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number formatted in logarithmic notation. This method provides a compact representation of large numbers using logarithms. ```APIDOC ## LogarithmNotation ### Description Returns a string with the number formatted in logarithmic notation. ### Method LogarithmNotation ### Parameters None ### Request Example ```lua print(InfiniteMath.new(1000):ScientificNotation()) -- e3.0 ``` ### Response #### Success Response - **string** - The number formatted in logarithmic notation. #### Response Example ```lua "e3.0" ``` ``` -------------------------------- ### log Source: https://kdudedev.github.io/InfiniteMath/api Returns the logarithm of x with the given base. Default base is constant e (2.7182818). ```APIDOC ## log ### Description Returns the logarithm of x with the given base. Default base is constant e (2.7182818). ### Method static ### Parameters - **Num** (number | string | table | Number) - Required - The number to take the logarithm of. - **Base** (number) - Optional - The base of the logarithm. Defaults to e. ### Returns - **Number** - The logarithm. ``` -------------------------------- ### InfiniteMath.log Source: https://kdudedev.github.io/InfiniteMath/api Returns the logarithm of a number with a given base. ```APIDOC ## InfiniteMath.log ### Description Returns the logarithm of x with the given base. Default base is constant e (2.7182818). ### Method log ### Parameters - **Num** (number | string | table | Number) - Required - The number to take the logarithm of. - **Base** (number) - Optional - The base of the logarithm. Defaults to e. ### Response #### Success Response Returns the logarithm Number. ``` -------------------------------- ### modf Source: https://kdudedev.github.io/InfiniteMath/api Returns both the integral part of n and the fractional part (if there is one). ```APIDOC ## modf ### Description Returns both the integral part of n and the fractional part (if there is one). ### Method static ### Parameters - **Num** (number | string | table | Number) - Required - The number to decompose. ### Returns - **Number** - The integral part and fractional part. ``` -------------------------------- ### InfiniteMath.log10 Source: https://kdudedev.github.io/InfiniteMath/api Returns the base-10 logarithm of a number. ```APIDOC ## InfiniteMath.log10 ### Description Returns the base-10 logarithm of x. ### Method log10 ### Parameters - **Num** (number | string | table | Number) - Required - The number to take the base-10 logarithm of. ### Response #### Success Response Returns the base-10 logarithm Number. ``` -------------------------------- ### ConvertFromLeaderboards Source: https://kdudedev.github.io/InfiniteMath/api Returns a constructed number from a number created by Number:ConvertForLeaderboards. This is used to display numbers on global leaderboards using OrderedDataStores. ```APIDOC ## ConvertFromLeaderboards ### Description Returns a constructed number, and should be given a number created by `Number:ConvertForLeaderboards`. This is what you will display on global leaderboards using OrderedDataStores. ### Method method ### Parameters - **GivenNumber** (number) - Required - The number to convert back to a Number object. ### Returns - **Number** - The constructed Number object. ### Example ```lua local ValueFromStore = InfiniteMath.new(1000):ConvertForLeaderboards() print(InfiniteMath:ConvertFromLeaderboards(ValueFromStore)) -- 1K ``` ``` -------------------------------- ### clamp Source: https://kdudedev.github.io/InfiniteMath/api Clamps a number between a minimum and maximum value. ```APIDOC ## clamp ### Description Clamps a number between a minimum and maximum value. ### Method static ### Parameters - **Num** (number | string | table | Number) - Required - The number to clamp. - **Min** (number | string | table | Number) - Required - The minimum value. - **Max** (number | string | table | Number) - Required - The maximum value. ### Returns - **Number** - The clamped Number. ``` -------------------------------- ### ScientificNotation: Disable abbreviation with nil and false Source: https://kdudedev.github.io/InfiniteMath/api/Number You can also use nil and false to stop the abbreviation functionality and instead just display 1e+1000000. ```lua print(InfiniteMath.new("1, 1e+6"):ScientificNotation(nil, false)) -- 1e+1000000 ``` -------------------------------- ### ScientificNotation: Abbreviation modes for large exponents Source: https://kdudedev.github.io/InfiniteMath/api/Number When a number reaches 1e+1000000, you can choose an abbreviation mode for the amount of zeros in the scientific notation. By default it uses GetSuffix on the exponent (1e+1M); true also uses the default behavior, false uses scientific notation (1e+1e+6). ```lua print(InfiniteMath.new("1, 1e+6"):ScientificNotation()) -- 1e+1M print(InfiniteMath.new("1, 1e+6"):ScientificNotation(true)) -- 1e+1M print(InfiniteMath.new("1, 1e+6"):ScientificNotation(false)) -- 1e+1e+6 ``` -------------------------------- ### InfiniteMath.sign Source: https://kdudedev.github.io/InfiniteMath/api/InfiniteMath Returns the sign of the number: -1 for negative, 1 for positive, 0 for zero. This static method takes a number-like input and returns an integer. ```APIDOC ## InfiniteMath.sign(Num) ### Description Returns the sign of the number. Negative numbers return -1, positive numbers return 1, 0 returns 0. ### Method static function ### Parameters - `Num` (number | string | table | Number) - The number to evaluate. ### Returns - `number` (integer) - The sign: -1, 1, or 0. ``` -------------------------------- ### InfiniteMath.fmod Source: https://kdudedev.github.io/InfiniteMath/api Returns the remainder of the division of a by b. ```APIDOC ## InfiniteMath.fmod ### Description Returns the remainder of the division of a by b that rounds the quotient towards zero. ### Method fmod ### Parameters - **a** (number | string | table | Number) - Required - The dividend. - **b** (number | string | table | Number) - Required - The divisor. ### Response #### Success Response Returns the remainder Number. ``` -------------------------------- ### Reverse: Convert constructed number to regular number Source: https://kdudedev.github.io/InfiniteMath/api/Number Attempts to return the constructed number converted into a regular number. If the constructed number is above 1e+308 it will instead return INF. ```lua print(InfiniteMath.new("1, 3"):Reverse()) -- 1000 ``` -------------------------------- ### InfiniteMath.floor Source: https://kdudedev.github.io/InfiniteMath/api Rounds a number down to the nearest integer. ```APIDOC ## InfiniteMath.floor ### Description Rounds a number down to the nearest integer. ### Method floor ### Parameters - **Num** (number | string | table | Number) - Required - The number to round down. ### Response #### Success Response Returns the rounded down Number. ``` -------------------------------- ### ScientificNotation Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number formatted in scientific notation. Supports abbreviation modes for the exponent when the number reaches 1e+1000000, allowing either abbreviated suffixes or full scientific notation for the exponent. ```APIDOC ## ScientificNotation ### Description Returns a string with the number formatted in scientific notation. When a number reaches `1e+1000000` you can choose an abbreviation mode for the amount of zeros in the scientific notation. By default, it will use GetSuffix on the exponent `1e+1M`, but you can also choose to have it use scientific notation `1e+1e+6`. You can also use nil and false to stop the functionality and instead just display `1e+1000000`. ### Method ScientificNotation ### Parameters - **abbreviation** (boolean | nil) - Optional - If true or nil, uses abbreviated suffix for exponent (e.g., 1e+1M). If false, uses scientific notation for exponent (e.g., 1e+1e+6). - **secondAbbreviation** (boolean | nil) - Optional - If false, disables abbreviation and displays full exponent (e.g., 1e+1000000). ### Request Example ```lua print(InfiniteMath.new(1000):ScientificNotation()) -- 1e+3 print(InfiniteMath.new("1, 1e+6"):ScientificNotation()) -- 1e+1M print(InfiniteMath.new("1, 1e+6"):ScientificNotation(true)) -- 1e+1M print(InfiniteMath.new("1, 1e+6"):ScientificNotation(false)) -- 1e+1e+6 print(InfiniteMath.new("1, 1e+6"):ScientificNotation(nil, false)) -- 1e+1000000 ``` ### Response #### Success Response - **string** - The number formatted in scientific notation. #### Response Example ```lua "1e+3" ``` ``` -------------------------------- ### floor Source: https://kdudedev.github.io/InfiniteMath/api Rounds a number down to the nearest integer. ```APIDOC ## floor ### Description Rounds a number down to the nearest integer. ### Method static ### Parameters - **Num** (number | string | table | Number) - Required - The number to round down. ### Returns - **Number** - The rounded down Number. ``` -------------------------------- ### aaNotation Source: https://kdudedev.github.io/InfiniteMath/api/Number Returns a string with the number formatted in double letter notation. The maximum number of letters can be adjusted using the AALENGTHMAX property. ```APIDOC ## aaNotation ### Description Returns a string with the number formatted in double letter notation. Use the AALENGTHMAX property to adjust the max letters possible. ### Method aaNotation ### Parameters None ### Request Example ```lua print(InfiniteMath.new(1e+15):aaNotation()) -- 1a ``` ### Response #### Success Response - **string** - The number formatted in double letter notation. #### Response Example ```lua "1a" ``` ``` -------------------------------- ### sign Source: https://kdudedev.github.io/InfiniteMath/api Returns the sign of the number. Negative numbers return -1, positive numbers return 1, 0 returns 0. ```APIDOC ## sign ### Description Returns the sign of the number. Negative numbers return -1, positive numbers return 1, 0 returns 0. ### Method static ### Parameters - **Num** (number | string | table | Number) - Required - The number to evaluate. ### Returns - **number** - The sign: -1, 0, or 1. ``` -------------------------------- ### InfiniteMath.ceil Source: https://kdudedev.github.io/InfiniteMath/api Rounds a number up to the nearest integer. ```APIDOC ## InfiniteMath.ceil ### Description Rounds a number up to the nearest integer. ### Method ceil ### Parameters - **Num** (number | string | table | Number) - Required - The number to round up. ### Response #### Success Response Returns the rounded up Number. ``` -------------------------------- ### InfiniteMath.abs Source: https://kdudedev.github.io/InfiniteMath/api Returns the absolute value of a number. ```APIDOC ## InfiniteMath.abs ### Description Returns the absolute value (distance from 0). ### Method abs ### Parameters - **Num** (number | string | table | Number) - Required - The number to get the absolute value of. ### Response #### Success Response Returns the absolute value Number. ``` -------------------------------- ### InfiniteMath.max Source: https://kdudedev.github.io/InfiniteMath/api Returns the largest number among the given arguments. ```APIDOC ## InfiniteMath.max ### Description Returns the largest number among the given arguments. ### Method max ### Parameters - **...** (number | string | table | Number) - Required - The numbers to compare. ### Response #### Success Response Returns the largest Number. ``` -------------------------------- ### sqrt Source: https://kdudedev.github.io/InfiniteMath/api Returns the square root of a number. ```APIDOC ## sqrt ### Description Returns the square root of a number. ### Method static ### Parameters - **Num** (number | string | table | Number) - Required - The number to compute the square root of. ### Returns - **Number** - The square root. ``` -------------------------------- ### max Source: https://kdudedev.github.io/InfiniteMath/api Returns the largest number among the given arguments. ```APIDOC ## max ### Description Returns the largest number among the given arguments. ### Method static ### Parameters - **...** (number | string | table | Number) - Required - The arguments to compare. ### Returns - **Number** - The largest number. ``` -------------------------------- ### InfiniteMath.sqrt Source: https://kdudedev.github.io/InfiniteMath/api Returns the square root of a number. ```APIDOC ## InfiniteMath.sqrt ### Description Returns the square root of a number. ### Method sqrt ### Parameters - **Num** (number | string | table | Number) - Required - The number to get the square root of. ### Response #### Success Response Returns the square root Number. ``` -------------------------------- ### InfiniteMath.fmod Source: https://kdudedev.github.io/InfiniteMath/api/InfiniteMath Returns the remainder of the division of a by b that rounds the quotient towards zero. ```APIDOC ## InfiniteMath.fmod(a, b) ### Description Returns the remainder of the division of a by b that rounds the quotient towards zero. ### Parameters - **a** (number | string | table | Number) - Required - The dividend. - **b** (number | string | table | Number) - Required - The divisor. ### Returns - **Number** - The remainder. ``` -------------------------------- ### fmod Source: https://kdudedev.github.io/InfiniteMath/api Returns the remainder of the division of a by b that rounds the quotient towards zero. ```APIDOC ## fmod ### Description Returns the remainder of the division of a by b that rounds the quotient towards zero. ### Method static ### Parameters - **a** (number | string | table | Number) - Required - The dividend. - **b** (number | string | table | Number) - Required - The divisor. ### Returns - **Number** - The remainder. ``` -------------------------------- ### InfiniteMath.round Source: https://kdudedev.github.io/InfiniteMath/api Rounds a number to the nearest integer. ```APIDOC ## InfiniteMath.round ### Description Rounds a number to the nearest integer. ### Method round ### Parameters - **Num** (number | string | table | Number) - Required - The number to round. ### Response #### Success Response Returns the rounded Number. ``` -------------------------------- ### round Source: https://kdudedev.github.io/InfiniteMath/api Rounds a number to the nearest integer. ```APIDOC ## round ### Description Rounds a number to the nearest integer. ### Method static ### Parameters - **Num** (number | string | table | Number) - Required - The number to round. ### Returns - **Number** - The rounded Number. ``` -------------------------------- ### ceil Source: https://kdudedev.github.io/InfiniteMath/api Rounds a number up to the nearest integer. ```APIDOC ## ceil ### Description Rounds a number up to the nearest integer. ### Method static ### Parameters - **Num** (number | string | table | Number) - Required - The number to round up. ### Returns - **Number** - The rounded up Number. ``` -------------------------------- ### abs Source: https://kdudedev.github.io/InfiniteMath/api Returns the absolute value (distance from 0) of a number. ```APIDOC ## abs ### Description Returns the absolute value (distance from 0). ### Method static ### Parameters - **Num** (number | string | table | Number) - Required - The number to get the absolute value of. ### Returns - **Number** - The absolute value. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.