[chuck-users] Max value of int in ChucK

Stephen Sinclair radarsat1 at gmail.com
Fri Sep 19 09:13:21 EDT 2008


On Thu, Sep 18, 2008 at 9:28 PM, Kassen <signal.automatique at gmail.com> wrote:
>
>
> 2008/9/19 Paul Reiners <paul.reiners at gmail.com>
>>
>> What is the maximum value of an int in ChucK? Is there a symbolic constant
>> for it?
>
> New in the latest version!
>
> <<<Math.INT_MAX>>>;

For reference though, it uses the "long" keyword in C++ to represent integers.
So on 32-bit computers the max should be 0x7FFFFFFF, or 2147483647.
On 64-bit computers it will be 0x7FFFFFFFFFFFFFFFFF, or 9223372036854775807.


Steve


More information about the chuck-users mailing list