| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | There`s gotta be an easi |
Hi Neil. 21-Dec-02 19:12:00, Neil Heller wrote to All NH> I was working on a program recently which involved the following: NH> target is a pointer to a structure containing a group of 10 NH> cstrings. That group is called info. NH> 2 of the 10 cstrings contain the representation of a number. we need details. is the number always in base-10 representation (or is octal or hex OK)? how about E-notation? Is it safe to assume that a "double" can hold the number ? NH> I must divide these numbers by 10. NH> I then must place that value back into the cstring (where I originally got it). assuming the number is always in plain base-10 (no hex or octal, or E-notation) and that any fraction-part can be dropped. all you really need to do is chop off (or blank out) the last digit. :) (if decimal fractions are to be retained your code is broken.) -=> Bye <=- ---* Origin: As King Arthur said: Some days it all seems so feudal. (3:640/1042) SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/1 379/1 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.