Is BigInt to Integer implicit conversion possible?
I want to convert number BigInt(10) to Integer(10)
I tried using AsInteger Typecasting function but then to it was giving negative value in the output as it was earlier during implicit conversion.
Is it possible to conver as follows BigInt------>Decimal------->Integer?
BigInt To Integer conversion
Moderators: chulett, rschirm, roy
The value that iam trying to convert is autogenerated 10 didgit BigInt number
i.e. 3000000000.
I tried converting it to decimal implicitly, it worked but when i tried assingning that decimal to integer it gave me fatal error "Transformer_10,0: Fatal Error: APT_Decimal::asInteger: the decimal value is out of range for the integer result."
Is there any other way to covert it into integer?
i.e. 3000000000.
I tried converting it to decimal implicitly, it worked but when i tried assingning that decimal to integer it gave me fatal error "Transformer_10,0: Fatal Error: APT_Decimal::asInteger: the decimal value is out of range for the integer result."
Is there any other way to covert it into integer?
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: