2 pzasusb8 - print a number in hex octets
5 custom("pzasusb8", arg)
13 This custom function prints out the numerator of a real value
14 in octets. Each HALF value is printed in a separate line.
16 NOTE: The output will vary depending on the size of a HALF
17 and the byte order of the system. See:
19 custom("sysinfo", "BASEB")
20 custom("sysinfo", "CALC_BYTE_ORDER")
24 This custom function is intented for testing of the general
28 > custom("pzasusb8", 0x01020304050607080910111213141516);
34 > custom("pzasusb8", 10^25)
39 > printf("%x\n", 10^25);
40 0x84595161401484a000000
43 calc must be built with ALLOW_CUSTOM= -DCUSTOM
44 calc must be executed with a -C arg.
52 ## Copyright (C) 1999 Landon Curt Noll
54 ## Calc is open software; you can redistribute it and/or modify it under
55 ## the terms of the version 2.1 of the GNU Lesser General Public License
56 ## as published by the Free Software Foundation.
58 ## Calc is distributed in the hope that it will be useful, but WITHOUT
59 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
60 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
61 ## Public License for more details.
63 ## A copy of version 2.1 of the GNU Lesser General Public License is
64 ## distributed with calc under the filename COPYING-LGPL. You should have
65 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
66 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
68 ## @(#) $Revision: 30.1 $
69 ## @(#) $Id: pzasusb8,v 30.1 2007/03/16 11:10:04 chongo Exp $
70 ## @(#) $Source: /usr/local/src/bin/calc/custom/RCS/pzasusb8,v $
72 ## Under source code control: 1999/10/06 04:05:43
73 ## File existed as early as: 1999
75 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
76 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/