TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: NEIL HELLER
date: 1997-03-18 19:56:00
subject: BCD and `folding`

Given the following:
string foo = "12345678";
Is there a built-in or easily obtainable function for converting foo
to a "BCD type" (if there is such)?  Would such a conversion
automatically "fold" foo so that the result would only require 4 bytes
instead of the minimum (9?) otherwise required?
Just thinking about it some more, it seems that a BCD class would be
in order.  How could I go about investigating the existance of same?
Would anyone care to speculate on the comparitive difficulties of
doing this in C as opposed to C++?
 * KWQ/2 1.2i * 
--- TMail v1.31.5
---------------
* Origin: Diablo Valley PCUG-BBS, Walnut Creek, CA 510/943-6238 (1:161/55)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.