- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
What are some good Signal NaN's for r4, r8 and r16 formats?
Dan
What are some good Signal NaN's for r4, r8 and r16 formats?
Dan
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[fortran]USE, INTRINSIC :: IEEE_ARITHMETIC
REAL(4) :: R4
REAL(8) :: R8
REAL(16) :: R16
R4 = IEEE_VALUE(R4, IEEE_SIGNALING_NAN)
R8 = IEEE_VALUE(R8, IEEE_SIGNALING_NAN)
R16 = IEEE_VALUE(R16, IEEE_SIGNALING_NAN)
PRINT '(Z8.8/Z16.16/Z32.32)', R4, R8, R16
END[/fortran]

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page