Re: Assembly Language - Mathematics WITHOUT maths coprocessor



On Tue, 11 Oct 2005 07:27:01 +0200, "¬a\\/b" <al@xxx> wrote:


>i think it is more easy than what you say
>for input something like this:
>if Lstring is the string of numbers and "a" is the number
>result
>fnum a, b;
>unum c;
>char *p1, *p2;
>b.sn=read(Lstring, p1);

a=b<<(32*precision);

>if(*p1==".") ++p1;
>else goto label;
>c=read(p1, p2);

>if(p1==p2) {label:;

> return a;
> }


>if(precision<c.len)
> {k=c.len-precision;
> c>>= 32*k;
> }
>a+=c;
>return a;
>
>for output, something like above, should be possible

.



Relevant Pages

  • Re: can someone please help me with making this class
    ... struct and another I put the insert in. ... string phoneNo; ... node *temp, *prev; ...
    (microsoft.public.vc.language)
  • Re: Handling Large files (a few Gb) in Perl
    ... search through each string looking for a specific character. ... my $prev = 0; ... sub use_length { ... Rate index length ...
    (comp.lang.perl.misc)
  • Re: can someone please help me with making this class
    ... string phoneNo; ... node *temp, *prev; ...
    (microsoft.public.vc.language)
  • Re: regex problem
    ... s> Why isn't it deleting the value of $prev in $line? ... >> the code you have there out of pure luck and coincidence. ... BM> string', unless /m is given, in which case it means 'match at ... The relevant bits of the original code are ...
    (comp.lang.perl.misc)
  • Declare function und Pfad
    ... Hallo, wie kann ich den Pfad, der auf eine DLL verweist aus einer Variablen ... ByVal c2 As String, n As Long) As Boolean ... Prev by Date: ...
    (microsoft.public.de.word.vba)