Menu

#10 Real Numbers in Templates

open
nobody
None
5
2006-12-20
2006-12-20
Anonymous
No

It would be nice if Rezilla's template editor supported real number fields in templates, as Resorcerer does. I'm interested in both fixed and floating point numbers.

Discussion

  • Bernard Desgraupes

    Logged In: YES
    user_id=357036
    Originator: NO

    You're right, real numbers are missing from Rezilla's templates syntax. Could you be more specific about the format in which you would like the fp values to be displayed.

    Resorcerer offered the following tags to specify floating points. Which of them would you say are of interest:

    DOUB Double Precision Float 8 bytes
    EXTN Extended 80-bit SANE Float 10 bytes
    FIXD 16:16 Fixed Point Number 4 bytes
    FRAC 2:30 Fixed Point Fraction 4 bytes
    FWID 4:12 Fixed Point Font Width 2 bytes
    FXYZ 1:15 Fixed Point Color Component 2 bytes
    REAL Single Precision Float 4 bytes
    SFRC 0:16 Fixed Point Small Fraction 2 bytes
    UNIV THINK C Universal 96-bit Float 12 bytes
    XT96 Extended 96-bit SANE Float 12 bytes

    cheers

    Bernard

     
  • Nobody/Anonymous

    Logged In: NO

    I would say REAL and DOUB would probably be the most important tags; however FIXD and FRAC (and possibly SFRC) also seem like good ones to implement.

    (Of course, you could also try to implement them all, but REAL, DOUB, FIXD, FRAC is probably a good place to start)

     
  • Bernard Desgraupes

    Logged In: YES
    user_id=357036
    Originator: NO

    OK I'll start with these four types (REAL, DOUB, FIXD, FRAC). I'll have a look in Resourcerer to see how it represents them.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.