Skip to content

The Mwnci Scripting Language

Mwnci dim() Function

Syntax

dim(number,number)

Description

The dim() Returns the maximum of x-y or 0.

Example

include("math")
printf("%.2f\n", dim(4, -2))
printf("%.2f\n", dim(-4, 2))


6.00
0.00

Index

  • What is MSL?
  • MSL Operators
  • MSL Compound Statements
    • foreach
    • function
    • if
    • switch
    • while
  • Mwnci Comments
  • Mwnci Variables
  • Mwnci Arrays
  • Mwnci Hashes
  • Built-in Functions
  • Mwnci Includes
    • Included Main Functions
    • Included String Functions
    • Included Math Functions
    • Included File Functions
    • Included Process Functions
    • Included Password Functions
    • Included Group Functions
    • Included Shadow Password Functions
    • Included Network Functions
  • The Mwnci REPL (console)
  • Examples
The Mwnci Scripting Language Proudly powered by WordPress