home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2116
Discussions: 186,677, Posts: 2,227,822, Members: 230,321
Free Scan: Update Your PC's Outdated Drivers to Optimize Performance
Old October 12th, 2003, 03:12 PM   Digg it!   #1 (permalink)
Member
 
couch potato's Avatar
 
Join Date: Oct 2002
Location: Salem, Oregon
Posts: 480
Question
teaching myself C, and i got a question

mkay, i have been making several programs that do conversions, such as earth's gravity to moon's gravity, and dollars to pounds, but i have a question. maybe its just that im not too advanced into math (taking algebra 2), but is there a way to get it to output specific amounts, such as $5.75 instead of just $5.00? i tried using integers and floating and double, but they dont seem to work, or i just doing something wrong?
__________________
"The filthy rich don't seem so filthy when you become one of them"

couch potato is offline   Reply With Quote
TechIMO.com Ads - Login or register for less ads.
How many errors does your computer have?

You no longer need to guess! This free stability scan and registry cleaner download will give you a complete diagnosis of your Windows registry, identifying errors and conflicts.

FREE instant scan


Guest, Register Free! to remove this ad and get your tech support questions answered in minutes!
Old December 1st, 2003, 08:43 AM     #2 (permalink)
Ultimate Member
 
Join Date: May 2000
Location: Miami, FL.
Posts: 2,783
Send a message via ICQ to voogru Send a message via AIM to voogru Send a message via MSN to voogru
Re: teaching myself C, and i got a question

Quote:
Originally posted by couch potato
mkay, i have been making several programs that do conversions, such as earth's gravity to moon's gravity, and dollars to pounds, but i have a question. maybe its just that im not too advanced into math (taking algebra 2), but is there a way to get it to output specific amounts, such as $5.75 instead of just $5.00? i tried using integers and floating and double, but they dont seem to work, or i just doing something wrong?

float flValue = 1.337;
printf("Your floating point value is %f\n", flValue);
__________________
My Website

voogru is offline   Reply With Quote
Old December 1st, 2003, 09:54 AM     #3 (permalink)
Moderator
 
phenious's Avatar
 
Join Date: Oct 2001
Location: Winter Park FL
Posts: 5,276
Send a message via AIM to phenious
if what voogru said dosnt help post some code snippits so we can see what your doing

-: phenious :-
__________________

phenious is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (659)
Best Boot Drive Imaging Software (9)
Video card compatability. (7)
Bought an AGP "HIS Radeon HD 3.. (18)
File associations (5)
Outlook add-in won't remove. (10)
Is this a good laptop for gamming? (6)
Misery Loves Company... (1873)
Presario Help (6)
Recent Discussions
[Help] Computer Freeze (4)
Putting together my wish list (21)
Acer SA80 Upgrade (2)
Best Boot Drive Imaging Softwar.. (9)
Computer won't start (10)
Fallout 3 problem (2)
Move folders from desktop to My.. (2)
graphics card driver issue (1)
What graphics card range for q9.. (1)
Seald copy of windows 95 for sa.. (1)
Magellan RoadMate 1412 GPS Perf.. (2)
FS: Dell 6000 laptop, modded 36.. (2)


All times are GMT -4. The time now is 09:16 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28