Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #5974

Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield"

Newsgroups comp.sys.apple2.programmer
Date 2022-05-27 08:18 -0700
References (1 earlier) <0tWdneh9UsCxXBP_nZ2dnUU7-LGdnZ2d@supernews.com> <ab3c733d-3328-4aa9-95f3-5056a84d75bbn@googlegroups.com> <48521c41-a6b6-4909-a514-96ef272db144n@googlegroups.com> <YuidnUhk0Z_IkQ3_nZ2dnUU7-c_NnZ2d@supernews.com> <a57d172d-76fa-4adc-969a-32ab0494aef5n@googlegroups.com>
Message-ID <d9309dd2-fe31-4f20-83f6-caaa60759eb3n@googlegroups.com> (permalink)
Subject Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield"
From "tsma...@gmail.com" <tsmaster@gmail.com>

Show all headers | View raw


> Question: How do i line up the positive and negative first digits as well as the decimal points. 

Do you want the decimal points lined up, the first digits lined up, or the negative signs (if any) lined up? With data of different magnitudes like 0.0, 10.0, 100.0, -1000.0, you won't be able to get all three.

For me, I'd try

printf("%d  %10.2f  %10.2f  %10.2f\n", n, real[n], imag[n], qual[n]);

and then tweak from there.

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" James Hall <james.hall.ottawa@gmail.com> - 2022-05-25 10:40 -0700
  Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" cruff@ruffspot.net (Craig Ruff) - 2022-05-25 18:52 -0500
    Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" James Hall <james.hall.ottawa@gmail.com> - 2022-05-25 18:33 -0700
      Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" "tsma...@gmail.com" <tsmaster@gmail.com> - 2022-05-26 09:20 -0700
        Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" cruff@ruffspot.net (Craig Ruff) - 2022-05-26 18:25 -0500
          Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" James Hall <james.hall.ottawa@gmail.com> - 2022-05-26 23:17 -0700
            Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" cruff@ruffspot.net (Craig Ruff) - 2022-05-27 07:19 -0500
            Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" "tsma...@gmail.com" <tsmaster@gmail.com> - 2022-05-27 08:18 -0700
              Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" James Hall <james.hall.ottawa@gmail.com> - 2022-05-27 12:53 -0700
                Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" Stephen Heumann <stephen.heumann@gmail.com> - 2022-05-27 21:54 -0500
                Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" James Hall <james.hall.ottawa@gmail.com> - 2022-05-28 00:02 -0700
      Re: I am working on a orca/c project and need "Learn to Program in C by Mike Westerfield" Stephen Heumann <stephen.heumann@gmail.com> - 2022-05-26 17:57 -0500

csiph-web