NCL Home > Documentation > Functions > System tools


Returns True if you are running NCL on a big endian machine.


	function isbigendian (


This function returns True if you are running on a big endian system, and False otherwise. This is important to know, especially if you are reading in binary files that were created on another system that may not be the same "endianness".

For more information on reading and writing binary files, see the setfileoption procedure.

See Also

setfileoption, cbinread, cbinwrite, fbindirread, fbinrecread, fbindirwrite, fbinrecwrite, fbinread, fbinnumrec


Example 1: Let's say it is desired to create little endian binary files regardless of the current system's endianness:

         if (isbigendian() ) then
         end if
         fbindirwrite(path, z )