GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
KLELSTDLIB(1) libklel KLELSTDLIB(1)

This manual page documents the standard library of variables and functions available for use in KL-EL expressions. For documentation on how to embed the KL-EL compiler and interpreter in an application, see klelapi(3). For a tutorial on how to use the library, see kleltut(3). For documentation on the expression language itself, see klellang(3).

The following sub-sections describe the various arithmetic, string, and time functions exported by the standard library for general use in KL-EL expressions.

Returns the absolute value of x.
Converts x to an integer, rounding towards negative infinity.
Converts x to a real number.
Returns the larger of x and y.
Returns the smaller of x and y.
Returns true if x is odd.

Computes a simple 16-bit checksum of x using the original BSD checksum algorithm.
Returns a string containing a single character whose character code is equal to x.
Returns the character code of the first character of x.
Returns the length in bytes of x.
Returns the string "true" if x is true; otherwise, it returns "false".
Returns the string representation of x in decimal notation.
Returns the string representation of x in decimal notation.
An alias for string_of_int.
Returns the string representation of x in hexadecimal notation.
Returns the string representation of x in octal notation.

Returns the number of seconds since the epoch.
Returns the current time as reported by the ctime(3) function.

Aborts execution (produces a runtime error, causing KlelExecute to return NULL) with the given message pushed onto the error stack. Does not return, but purports to return a boolean, allowing it to be used in boolean expressions.
As for abort_bool, but purports to return an integer.
As for abort_bool, but purports to return an real number.
As for abort_bool, but purports to return an string.

The following variables are defined in the standard library:

                      ======= DEFINITION =======
                              t  d
                              y  e
                              p  s
                              e  c
                                 r
                                 i
                                 p
                                 t
                                 i
                                 o
                                 n
   ======   VARIABLE  ==========================
   true                       B  Boolean true
   false                      B  Boolean false
   pi                         R  3.1415926535897932384 (approximation)
   e                          R  2.7182818284590452354 (approximation)

klel-expr(1), klelapi(3), klellang(3), kleltut(3)

2025-07-03 1.1.0

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.