LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lp.ascii_doubleToui64

LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.

Syntax

‘result’ = lp.ascii_doubleToui64(value);

Description

This function converts a value of double unsigned type in a character string representing the 64 bits value. This is used to avoid the display of value in exponent format.

Parameters

value - any LUA number

Return Values

value : a character string of the 64 bits value

Return nil if an error occurs

buffer : value

Return nil if an error occurs

Example

a=80^4;

lp.Print(a,"\n");

a=800^4;

lp.Print(a,"\n");

a=8000^4;

lp.Print(a,"\n");

lp.Print(lp.ascii_doubleToui64(a),"\n");

64 bitascii

 

 


www.loriotpro.com