[Pas2js] My 1st type helper
warleyalex
warleyalex at yahoo.com.br
Thu Feb 28 12:45:28 CET 2019
we have to create an intermediate variable "s" to work as expected.
var
ReturnValue : Float;
s: string;
begin
ReturnValue := 2.71;
ReturnValue:= ReturnValue * ReturnValue.NPI;
s:= ReturnValue.ToStr;
console.log(s); // 8.51371432
------
but we can't use it straightforward like
// console.log((ReturnValue * ReturnValue.NPI).ToStr); //8.51371432
--
Sent from: http://pas2js.38893.n8.nabble.com/
More information about the Pas2js
mailing list