Title: | Digital Ladebug debugger |
Moderator: | TLE::LUCIA |
Created: | Fri Feb 28 1992 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 969 |
Total number of notes: | 3959 |
4.0-29 The MONITOR view of a floating point value that is exactly an integer doesn't put out the ".0" which is disconcerting /Bevin
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
802.1 | TLE::LUCIA | http://asaab.zko.dec.com/~lucia/biography.html | Fri Jan 31 1997 17:16 | 29 | |
fyi, "print f" does the same thing... It's the result of "cout << f", I believe. Remember that ladebug's philosphy is to "do what the language does." /local/lucia/scratch> cxx -g bevin.C /local/lucia/scratch> a.out 1 1.1 1 1.1 /local/lucia/scratch> cat bevin.C #include <iostream.h> int main() { float onePointZero = 1.0; float onePointOne = 1.1; double onePointZeroD = 1.0; double onePointOneD = 1.1; cout << onePointZero << endl; cout << onePointOne << endl; cout << onePointZeroD << endl; cout << onePointOneD << endl; return 0; } | |||||
802.2 | ADA9X::BRETT | Sat Feb 01 1997 21:10 | 3 | ||
Wow - you are disconcertingly right! /Bevin |