- Language Features
- Less - Nested Rules
- Less - Nested Directives and Bubbling
- Less - Operations
- Less - Escaping
- Less - Functions
- Less - Namespaces and Accessors
- Less - Scope
- Less - Comments
- Less - Importing
- Less - Variables
- Less - Extend
- Less - Mixins
- Less - Parametric Mixins
- Less - Mixins as Functions
- Less - Passing Rulesets to Mixins
- Less - Import Directives
- Less - Import Options
- Less - Mixin Guards
- Less - CSS Guards
- Less - Loops
- Less - Merge
- Less - Parent Selectors
- Less - Misc Functions
- Less - String Functions
- Less - List Functions
- Less - Math Functions
- Less - Type Functions
- Less - Color Defination Functions
- Less - Color Channel Functions
- Less - Color Operation
- Less - Color Blending Functions
- Less - Command Line Usage
- Using Less In The Browser
- Less - Browser support
- Less - Plugins
- Less - Programmatic Usage
- Less - Online Compilers
- Less - GUIs
- Less - Editors and Plugins
- Less - Third Party Compilers
- Less - Frameworks
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
LESS - Math Functions
17 Lectures 2 hours
23 Lectures 1.5 hours
Math functions includes methods which are used for performing numeric operations such as round, square root, power value, modulus, percentage, etc.
Following table shows Math Functions used in LESS −
|Sr.No.||Function & Description||Example|
It rounds up the number to next highest integer.
it round the number to −
It rounds down the number to next lowest integer.
it round the number to −
It transforms the floating point number to percentage string.
it converts the number to percentage string as −
It rounds a floating point number.
it converts the number to the rounding value as −
It returns the square root of a number.
it defines the square root of a number as −
It provides the absolute value of a number.
it displays the absolute value as −
It returns radians on numbers.
it calculates the sine value as −
It specifies arcsine (inverse of sine) of a number which returns value between -pi/2 and pi/2.
it calculates the asin value as −
It returns cosine of the specified value and determines radians on numbers without units.
it calculates the cos value as −
It specifies arccosine (inverse of cosine) of a number which returns value between 0 and pi.
it calculates the acos value as −
It specifies tangent of the number.
it calculates the tan value as −
It specifies arctangent (inverse of tangent) of a specified number.
it displays atan value as −
It returns the pi value.
it determines the pi value as −
It specifies the value of first argument raised to the power of second argument.
it specifies the power value as −
It returns modulus of first argument with respect to the second argument. It also handles negative and floating point numbers.
it returns the modulus value as −
It specifies the smallest value of one or more arguments.
it returns the minimum value as −
It specifies the highest value of one or more arguments.
it returns the maximum value as −