Re: multiple precision integers-string to int conversion routines

From: Victor Bazarov (v.Abazarov_at_comAcast.net)
Date: 02/01/05


Date: Mon, 31 Jan 2005 19:50:46 -0500


"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?



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)
  • 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)
  • 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)
  • 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)