Goto main content

twice

This function multiply a number by 2.

TWICE

NAME

twice - This function multiply a number by 2.

SYNOPSIS

twice(integer)

DESCRIPTION

This module is use as an exemple.

PARAMETERS

number
Specify the number (integer) to multiply by 2 bu a left shift.

RETURN

Number multiply by 2

MODULES

To use this module, you must specify the following in /usr/local/website/site.conf:

Module snexemple {
        Library : "/usr/local/lib/libsnsnexemple.so"
        Init : "snexemple_init"
}

EXAMPLES

test(q(res=<{b="5.2";factorial(b);}>.), q(res=120.));
test(q(res=<{twice(2);}>.), q(res=4.));

SEE ALSO

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.