I have this problem with pack. In a function I am using I have to use

tempdata = [data].pack("i") # This line works on PowerPC

or

tempdata = [data].pack("i").reverse # This line works on Intel

where data is a number (integer). I've tried some of the other pack 
options but they dont seem to work. Is there a single option I could be 
using?