IT2Be
1
I have a global integer: global.ID.
I set that global based upon a query global.ID = dataset.getValue(1,1). (result is 104, dataprovider is an integer)
When I now read that global the value is 104.0
So it doesn’t look like an integer but like a float (=number).
Do I do something wrong here? BTW when I say global.ID = input.numberFormat(dataset.getValue(1,1), 2) the value is correct, is 104…
we don’t do type checking if you assign something to a global.
But are you sure that the dataset.getValue(1,1) is pointing to a column that is a integer and not a float?
“input.numberFormat(dataset.getValue(1,1), 2)”
this is the same as:
utils.numberFormat(dataset.getValue(1,1), 2)
??
because if you say 2 digits then it should always return a string with 2 digits.. no matter what the input is (string/integer/float)