Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
floating point
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
beck322
New Member
Join Date:
Jan 2007
Posts:
12
#1
floating point
Mar 22 '07, 12:28 AM
How do i declare a constant floating point variable with a value of 3.1416 ?
Roonie
New Member
Join Date:
Mar 2007
Posts:
99
#2
Mar 22 '07, 12:52 AM
Code:
const float var_name = 3.1416;
Comment
Post
Cancel
Ganon11
Recognized Expert
Specialist
Join Date:
Oct 2006
Posts:
3651
#3
Mar 22 '07, 12:31 PM
Specifically (since this looks like you are defining pi),
Code:
const float PI = 3.1416;
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment