Question about Computers & Internet
Hi all i am running turbo c in vista through dosbox.
i have written the following code-
printf('' f= %lf'',f)
it produces me the output 0.000000
while i am expecting 0.000000024
i need value upto 12 places after decimal.
why it is not producing with double precision.
plzzz help; its urgent.
It's a long time since I played with Turbo C but there are a couple of things you could try since problem is clearly in printf formatting.
First try using capital L as " f= %Lf". Lower case 'l' normally precedes an integer variable type and may be forcing conversion to 7 digits.
No luck? Try " f= %.12f". This should force 12 decimal places.
Sorry I don't have Turbo C around anymore so can't try it myself.
Posted on Jul 24, 2009
a 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of.(from cars to computers, handyman, and even drones)
click here to download the app (for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
Sep 23, 2009 | Microsoft Windows Vista Ultimate Edition
Sep 03, 2009 | Microsoft Windows Vista Ultimate Edition
Aug 29, 2009 | Compaq Presario 700 470024-192 Notebook
Jun 17, 2009 | Microsoft Windows Vista Ultimate Edition
Mar 07, 2009 | Microsoft Windows Vista Ultimate Edition
Jul 02, 2008 | Microsoft Windows Vista Ultimate Edition
114 people viewed this question
Usually answered in minutes!
Step 2: Please assign your manual to a product: