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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
number->string bug?, Brandon Ibach | Thread | error in html32c.dsl, Sebastian Rahtz |
number->string bug?, Brandon Ibach | Date | error in html32c.dsl, Sebastian Rahtz |
Month |