public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/5007] New: (hpd) print 1.0 -format x -> 0x1p0 ; i.e., float but in base hex
@ 2007-09-07 14:40 cagney at redhat dot com
  2008-01-22 21:44 ` [Bug general/5007] " cagney at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: cagney at redhat dot com @ 2007-09-07 14:40 UTC (permalink / raw)
  To: frysk-bugzilla

There's a pre-cursor to this - code to unpack and perform arbitrary floating-point.

There's also subtle problems in attempting up conversion such as float->double
alter the value:

  print 1.4
  $1 = 1.3999999999999999

vs:

  print 1.4
  1.4

someone into hard-core floating-point isn't going to accept the former.

-- 
           Summary: (hpd) print 1.0 -format x -> 0x1p0 ; i.e., float but in
                    base hex
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: cagney at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=5007

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug general/5007] (hpd) print 1.0 -format x -> 0x1p0 ; i.e., float but in base hex
  2007-09-07 14:40 [Bug general/5007] New: (hpd) print 1.0 -format x -> 0x1p0 ; i.e., float but in base hex cagney at redhat dot com
@ 2008-01-22 21:44 ` cagney at redhat dot com
  2008-01-24 19:31 ` tthomas at redhat dot com
  2008-01-24 19:33 ` tthomas at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: cagney at redhat dot com @ 2008-01-22 21:44 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From cagney at redhat dot com  2008-01-22 21:43 -------
See printf(3)'s "a" and "A" formats for a guidelines.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5007

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug general/5007] (hpd) print 1.0 -format x -> 0x1p0 ; i.e., float but in base hex
  2007-09-07 14:40 [Bug general/5007] New: (hpd) print 1.0 -format x -> 0x1p0 ; i.e., float but in base hex cagney at redhat dot com
  2008-01-22 21:44 ` [Bug general/5007] " cagney at redhat dot com
@ 2008-01-24 19:31 ` tthomas at redhat dot com
  2008-01-24 19:33 ` tthomas at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: tthomas at redhat dot com @ 2008-01-24 19:31 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From tthomas at redhat dot com  2008-01-24 19:30 -------
Eg:
    (fhpd) print 2.0 -format x
    0x1.0p1  

Commit:
    Format floating points as hex constants for '-format x'.
    
    frysk-core/frysk/value/ChangeLog
    2008-01-24  Teresa Thomas  <tthomas@redhat.com>
    
    	* FloatingPointType.java (printAsHexConstant): New.
    	* Format.java (printHexadecimalFP): Call printAsHexConstant.
    	* TestFormat.java (testHexadecimal): Update values.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |5361
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=5007

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug general/5007] (hpd) print 1.0 -format x -> 0x1p0 ; i.e., float but in base hex
  2007-09-07 14:40 [Bug general/5007] New: (hpd) print 1.0 -format x -> 0x1p0 ; i.e., float but in base hex cagney at redhat dot com
  2008-01-22 21:44 ` [Bug general/5007] " cagney at redhat dot com
  2008-01-24 19:31 ` tthomas at redhat dot com
@ 2008-01-24 19:33 ` tthomas at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: tthomas at redhat dot com @ 2008-01-24 19:33 UTC (permalink / raw)
  To: frysk-bugzilla



-- 
Bug 5007 depends on bug 5361, which changed state.

Bug 5361 Summary: getting <<print long_double >> to work
http://sourceware.org/bugzilla/show_bug.cgi?id=5361

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

http://sourceware.org/bugzilla/show_bug.cgi?id=5007

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-01-24 19:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-07 14:40 [Bug general/5007] New: (hpd) print 1.0 -format x -> 0x1p0 ; i.e., float but in base hex cagney at redhat dot com
2008-01-22 21:44 ` [Bug general/5007] " cagney at redhat dot com
2008-01-24 19:31 ` tthomas at redhat dot com
2008-01-24 19:33 ` tthomas at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).