unsigned in with mpif90

anton_helm a.helm87@googlemail.com
Fri Aug 20 09:02:00 GMT 2010


Ok. Thanks.

Is there a function which give me the maximum value?

2010/8/20 Arjen Markus <arjen.markus895@gmail.com>:
> Hello,
>
> Fortran has no unsigned integers. You could use the bit manipulation
> routines to set the bit pattern to what you need. If you are doing
> arithmetic on unsigned numbers, then I suggest you define a
> derived type and define specific operations to simulate unsigned
> numbers.
>
> Regards,
>
> Arjen
>
> 2010/8/20 anton_helm <a.helm87@googlemail.com>:
>> Hey,
>>
>> I'm using mpif90 (inter-compiler and mpi) for compiling a FORTRAN
>> code. I just wanted to add some new unsigned integers, but I can't get
>> an unsigned integer with my compiler. Or does anybody have a solution
>> for my problem?
>> I just want an 64bit integer with the values from 0 up to 2**64 - 1.
>>
>> Is there a function which give me the max value of my defined variable?
>>
>> Thanks.
>>
>> Best regards
>> Anton
>>
>



More information about the Fortran mailing list