twice . math . sncode
latest
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.));
AUTHOR
Written by Pierre Laplante, <laplante@sednove.com>