Questions tagged [math]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
20 views

cash (less) - ouput is not converting from dollars to cents or rounding

hi i'm trying to convert the users input from dollars to cents. every time it just prints exactly what i typed in, so if i enter 0.20, the output is 0.200000. my math.h seems to be having no effect ...
0
votes
1answer
64 views

pset3: multiply x by y, n times

I've already completed this pset, but I'd like to improve my understanding of one part of it, so this is a maths question. I'm using a for loop to calculate hz in relation to octave in the notation ...
0
votes
1answer
30 views

Numbers with printf -- sanity check

I'm working on week 2's problem set and I ran into a floating point exception. In trying to use printf to diagnose the problem, I'm finding something I can't figure out. #include <stdio.h> #...
0
votes
1answer
60 views

Help in Resize, biSize headers not sizing correctly

#include <stdio.h> #include <cs50.h> #include <stdlib.h> #include <math.h> #include "bmp.h" int main(int argc, char *argv[]) { // ensure proper usage if (argc != 4) ...