Chapter 4. Functions

Table of Contents

4.1. Introduction
4.2. Arithmetic functions
4.2.1. abs()
4.2.2. div()
4.2.3. factorial()
4.2.4. fmod()
4.2.5. mod()
4.2.6. mul()
4.2.7. remainder()
4.2.8. uminus()
4.2.9. uplus()
4.3. Bitwise functions
4.3.1. and()
4.3.2. not()
4.3.3. or()
4.3.4. shl()
4.3.5. shr()
4.3.6. xor()
4.4. Boolean logic functions
4.4.1. land()
4.4.2. lnot()
4.4.3. lor()
4.5. Comparison functions
4.5.1. eq()
4.5.2. ge()
4.5.3. gt()
4.5.4. le()
4.5.5. lt()
4.5.6. ne()
4.6. Rounding and related functions
4.6.1. ceil()
4.6.2. floor()
4.6.3. rint()
4.6.4. round()
4.6.5. trunc()
4.7. Exponential, logarithmic and related functions
4.7.1. exp()
4.7.2. exp10()
4.7.3. exp2()
4.7.4. ln()
4.7.5. log()
4.7.6. log10()
4.7.7. log2()
4.7.8. pow()
4.7.9. sqr()
4.7.10. sqrt()
4.8. Trigonometric functions
4.8.1. acos()
4.8.2. asin()
4.8.3. atan()
4.8.4. cos()
4.8.5. cot()
4.8.6. csc()
4.8.7. sec()
4.8.8. sin()
4.8.9. tan()
4.9. String functions
4.9.1. concat()
4.9.2. left()
4.9.3. lower()
4.9.4. mid()
4.9.5. proper()
4.9.6. right()
4.9.7. strlen()
4.9.8. upper()
4.10. Datetime functions
4.10.1. chgdateof()
4.10.2. chgtimeof()
4.10.3. date()
4.10.4. dateof()
4.10.5. day()
4.10.6. dim()
4.10.7. dtos()
4.10.8. dtosf()
4.10.9. gettimeinsecs()
4.10.10. interval()
4.10.11. month()
4.10.12. now()
4.10.13. settimeinsecs()
4.10.14. stdwiy()
4.10.15. stod()
4.10.16. stodt()
4.10.17. stodtsql()
4.10.18. timeof()
4.10.19. tstod()
4.10.20. wiy()
4.10.21. wiy1()
4.10.22. wiyo()
4.10.23. year()
4.11. Type agnostic functions
4.11.1. add()
4.11.2. dec()
4.11.3. inc()
4.11.4. sub()
4.12. Formatting and conversion functions
4.12.1. format()
4.12.2. printf()
4.12.3. str()
4.12.4. val()
4.13. Miscellaneous functions
4.13.1. brrownum()
4.13.2. error()
4.13.3. eval()
4.13.4. fxpval()
4.13.5. iif()
4.13.6. isdatetime()
4.13.7. iserror()
4.13.8. isnan()
4.13.9. isnull()
4.13.10. isnumeric()
4.13.11. isstring()
4.13.12. null()
4.13.13. nulldt()
4.13.14. nulln()
4.13.15. nulls()
4.13.16. prevval()
4.13.17. random()
4.13.18. rownum()
4.13.19. translate()
4.13.20. translate2()