Wafl Home

Primitive Data Types Tutorial

Function abs

Float function abs(x) computes an absolute float value of a given float value x.

Source code:

{#
abs( 123.456 ),
abs( -123.456 ),
abs( -0.0 )
#}

Result:

{# 123.456001, 123.456001, 0.000000 #}

 

Table of Contents

Let's Start

Program Structure

Primitive Data Types

List

Tuple

Record

HTML

Command Line Interpreter

Using Web Servers

Syntax

Examples

Tips

The most of examples evaluates with both command line and Web server Wafl interpreters. If any example is based on specific features of an interpreter, it is explicitly annotated.