Re: number->string bug?

Subject: Re: number->string bug?
From: kubek@xxxxxxxxxxxx (kubek)
Date: Thu, 2 Jul 1998 09:59:48 +0200
>>>>> "Brandon" == Brandon Ibach <bibach@xxxxxxxxxxxxxx> writes:

    Brandon>    Has anyone else had a problem with Jade's
    Brandon> (number->string) function? When I try to use it, it
    Brandon> returns something that (debug) calls an #<unknown
    Brandon> object... This same problem occurs with the undocumented
    Brandon> (quantity->string) function, as well. TIA...


There is a problem in jade 1.1.1 with the conversion of real numbers
and quantities. This problem comes from the handling of radix
introduced in this version

Waiting a new version, you may correct this behaviour by modifying the
files $(JADEHOME)/style/ELObj.h and $(JADEHOME)/style/ELObj.cxx by
adding the followings :

File $(JADEHOME)/style/ELObj.h :

*** ELObj.h	1998/06/18 09:43:02	1.1
--- ELObj.h	1998/06/18 11:07:12

***************
*** 255,260 ****
--- 255,261 ----
    QuantityType quantityValue(long &, double &, int &);
    bool isEqual(ELObj &);
    void print(Interpreter &, OutputCharStream &);
+   void print(Interpreter &, OutputCharStream &, unsigned );
  private:
    double n_;
  };

File $(JADEHOME)/style/ELObj.cxx, at line 676 add :

void RealObj::print(Interpreter & interp, OutputCharStream &out, 
	            unsigned radix)
{
  print(interp,out);
}


Note that these patches do not try to handle the radix argument.

    Brandon> -Brandon :)


    Brandon>  DSSSList info and archive:
    Brandon> http://www.mulberrytech.com/dsssl/dssslist

J.-M.


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • number->string bug?
    • Brandon Ibach - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id VAA05297Wed, 1 Jul 1998 21:29:09 -0400 (EDT)
      • kubek - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id EAA23970Thu, 2 Jul 1998 04:07:48 -0400 (EDT) <=
        • Sebastian Rahtz - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id EAA07373Fri, 3 Jul 1998 04:23:13 -0400 (EDT)
          • Chris Maden - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA14209Tue, 7 Jul 1998 11:21:32 -0400 (EDT)