bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dc hex/dec conversion


From: Juan-Carlos . ManzanoAndres
Subject: dc hex/dec conversion
Date: Mon, 4 Nov 2002 19:03:33 +0100

Hi,

I casually found this method to convert big numbers to/from dec/hex giving
"mod" as operator, although I coundn't find it documented in the dc man
page, version "Last change: 1997-03-25" of my Solaris 8 system:

$ dc
>2673633572206487918868565023022626 -hex-
>16
>mod
155 is unimplemented
>p
83D200000006B30D0387A5745E22 -dec-
>10
>mod
155 is unimplemented
>p
2673633572206487918868565023022626 -again hex-

I wonder what the message "155 is unimplemented" means and if "mod" is
expected to produce this result; the fact is, it works.

Yours,
Juan-Carlos Manzano
Trust and Payment Services
SSH2TP

HVB-Systems GmbH
Member of HVB-Group
Apianstr. 8 - 14
D-85774 Unterfoehring

phone +49 89 378 21264
fax +49 89 378 33 21264
address@hidden
http://www.hvbsystems.com

Important Note: 
This e-mail is intended for the person or company/organization named as
recipient. It  may contain trade secrets or privileged, undisclosed or
confidential information or information otherwise protected by work-product
immunity or other legal regulations. If you have received this e-mail by
mistake, please note that forwarding, copying, distributing or using the
information contained in this e-mail is strictly prohibited. Kindly inform
us immediately and delete the original document. In addition, please let us
know if you or your company object to receiving e-mails for messages of this
kind.

Wichtiger Hinweis:
Diese Information ist für den Gebrauch durch die Person oder die
Firma/Organisation bestimmt, die in der Empfängeradresse benannt sind und
unterliegt u. U. dem Berufsgeheimnis, dem Schutz von Arbeitsergebnissen oder
anderweitigem rechtlichen Schutz. Wenn Sie nicht der angegebene Empfänger
sind, nehmen Sie bitte zur Kenntnis, dass Weitergabe, Kopieren, Verteilung
oder Nutzung des Inhalts dieser E-Mail-Übertragung unzulässig ist. Falls Sie
diese E-Mail irrtümlich erhalten haben, benachrichtigen Sie den Absender
bitte unverzüglich und löschen Sie diese E-Mail. Bitte informieren Sie uns
auch unverzüglich, wenn Sie oder Ihr Arbeitgeber nicht mit
E-Mail-Nachrichten dieser Art einverstanden sein sollten.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]