Thread: changing accuracy of output from an input value

  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, 04:41 PM
  5. Multi input to Output.
    By Krullt in forum C Programming
    Replies: 3
    Last Post: 09-25-2001, 02:07 PM