Changeset 1581:9bb83c7f479b in lemon-0.x for gui/graph_displayer_canvas-node.cc
- Timestamp:
- 07/22/05 13:04:27 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2083
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/graph_displayer_canvas-node.cc
r1579 r1581 136 136 //that is the deleter map 137 137 138 Graph::NodeMap<double> * actual_map ;138 Graph::NodeMap<double> * actual_map=NULL; 139 139 if(mapname!="Default") 140 140 { … … 166 166 if(j!=length) 167 167 { 168 int digit=(int)round(number/maxpos); 168 // std::cout << (number) << "-" << (int)number << "=" << (number)-(int)number << std::endl; 169 if((number-(int)number)>ALMOST_ONE) 170 { 171 // std::cout<<"rounding: " <<number<<std::endl; 172 number=round(number); 173 } 174 int digit=(int)(number/maxpos); 175 // std::cout << number << "/" << maxpos << "=" << digit << std::endl; 169 176 str[j]=(digit+'0'); 170 177 number-=digit*maxpos; … … 203 210 if(j!=length) 204 211 { 212 if((number-(int)number)>ALMOST_ONE) 213 { 214 number=round(number); 215 } 205 216 int digit=(int)(number/maxpos); 206 217 str[j]=(digit+'0');
Note: See TracChangeset
for help on using the changeset viewer.