Predefined functions and procedures
This chapter lists in alphabetical order all predefined functions and procedures included in the Mosel language. Certain functions or procedures take predefined constants as input values or return values that correspond to predefined constants. In every case, these constants are documented with the function or procedure. In addition, Mosel defines a few other useful numerical constants:
- MAX_INT
- maximum integer number
- MAX_REAL
- maximum real number
- M_E
- base of natural logarithms e
- M_PI
- value of π
- INFINITY
- Infinity
- NAN
- Not A Number
- abs
- arctan
- asproc
- assert
- bitflip
- bitneg
- bitset
- bitshift
- bittest
- bitval
- ceil
- compare
- cos
- create
- currentdate
- currenttime
- cutelt
- cutfirst
- cuthead
- cutlast
- cuttail
- delcell
- datablock
- dumpcallstack
- exists
- exit
- exp
- exportprob
- fclose
- fflush
- finalize
- findfirst
- findlast
- floor
- fopen
- fselect
- fskipline
- fwrite, fwriteln
- getact
- getchar
- getcoeff
- getcoeffs
- getdual
- getelt
- geteltype
- getfid
- getfirst
- gethead
- getfname
- getlast
- getnbdim
- getobjval
- getparam
- getrcost
- getreadcnt
- getreverse
- getsize
- getslack
- getsol
- getstruct
- gettail
- gettype
- gettypeid
- getvars
- iniobuffer
- isdefined
- isdynamic
- iseof
- isfinite
- ishidden
- isinf
- isnan
- isodd
- ln
- localsetparam
- log
- makesos1, makesos2
- maxlist
- memoryuse
- minlist
- newmuid
- publish
- random
- read, readln
- reset
- restoreparam
- reverse
- round
- setcoeff
- sethidden
- setioerr
- setmatherr
- setname
- setparam
- setrandseed
- setrange
- settype
- sin
- splithead
- splittail
- sqrt
- strfmt
- substr
- timestamp
- unpublish
- versionnum, versionstr
- write, writeln
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.