Re: multiple precision integers-string to int conversion routines

From: adrin (adrin_at_adrin.adrin)
Date: 02/01/05


Date: Tue, 1 Feb 2005 08:50:49 +0000 (UTC)


"Victor Bazarov" <v.Abazarov@comAcast.net> wrote in
news:wNidnXrMb7D4T2PcRVn-3w@comcast.com:

> "adrin" <adrin@adrin.adrin> wrote...
>> hello,
>> how can i make a conversion from a string to a multiple precision
>> integer stored in memory in a base 2^32?
>> i guess conversion from integer to string would require dividing
>> modulo 10,
>> but how do the opposite conversion?
>
> How about multiplying by 10 and adding?
oh, hehe thanks



Relevant Pages

  • Re: SysFreeString - Is the memory mine to use as I please ?
    ... and they do the conversion ... for a particular type of wide string. ... Windows - there is no such thing as local/global memory under NT-based ... Wide-char results in a string that I have to discard using "SysFreeMemory". ...
    (microsoft.public.win32.programmer.kernel)
  • Re: multiple precision integers-string to int conversion routines
    ... > how can i make a conversion from a string to a multiple precision integer ... > stored in memory in a base 2^32? ...
    (comp.lang.cpp)
  • multiple precision integers-string to int conversion routines
    ... how can i make a conversion from a string to a multiple precision integer ... stored in memory in a base 2^32? ... i guess conversion from integer to string would require dividing modulo 10, ...
    (comp.lang.cpp)
  • Proposal: String::Format::General
    ... It provides format string parsing and output assembly, you provide the code that implements the individual conversion characters. ... Format syntax is kind of a cross between sprintf and strftime, but how close it is to each of these depends on the semantics implemented by the user. ... Note that the following is pre-alpha documentation; the interface to the output conversion code has changed since yesterday, ... conversion character, and contain a number of optional fields which may ...
    (comp.lang.perl.modules)
  • Re: what if (f)printf returns EINTR ?
    ... vsnprintf - formatted output conversion ... int fprintf; ... write to the character string str. ...
    (comp.unix.programmer)