changing accuracy of output from an input value

This is a discussion on changing accuracy of output from an input value within the C Programming forums, part of the General Programming Boards category; im trying to set the accuracy of an output by a value which is input. ive got the number coded ...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    7

    changing accuracy of output from an input value

    im trying to set the accuracy of an output by a value which is input.

    ive got the number coded in etc, and im trying to determine how many numbers should appear after the decimal place.
    atm i have
    Code:
    %8.zlf
    where z is the input number, but all it does is displace zlf, any tips/clues/rants directed at me would be appreciated

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    7
    i just found out its using the switch function, so please ignore my ignorance

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need some help with C program writing
    By The_PC_Gamer in forum C Programming
    Replies: 9
    Last Post: 02-12-2008, 09:12 PM
  2. Need a lesson on input and output data
    By dispatch4599 in forum C++ Programming
    Replies: 16
    Last Post: 02-06-2008, 09:04 PM
  3. Trouble with a lab
    By michael- in forum C Programming
    Replies: 18
    Last Post: 12-06-2005, 11:28 PM
  4. file input and output
    By isaac in forum C Programming
    Replies: 3
    Last Post: 06-04-2002, 05:41 PM
  5. Multi input to Output.
    By Krullt in forum C Programming
    Replies: 3
    Last Post: 09-25-2001, 03:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21