Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default floating point percision

Status
Not open for further replies.

icrf

Programmer
Dec 4, 2001
1,300
US
Quick question, is there a way to make visual studio 6 see a simple floating point constant as type float instead of type double? ----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light
 
Put an F at the end of the number. eg

1.0 is a double
1.0F is a float
 
Thanks, that looks much nicer than formal casting. ----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top