[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::decladebug

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

802.0. "MONITOR of a float doesn't put out .0" by ADA9X::BRETT () Fri Jan 31 1997 13:46

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.RTitleUserPersonal
Name
DateLines
802.1TLE::LUCIAhttp://asaab.zko.dec.com/~lucia/biography.htmlFri Jan 31 1997 17:1629
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.2ADA9X::BRETTSat Feb 01 1997 21:103
Wow - you are disconcertingly right!

/Bevin