I have a question about C behavior I don't understand...
#define KB 1024
#define FOUR_KB 4*KB
int main() {
uint32_t a;
uint32_t b = 24576;
a = ceil((float)b/FOUR_KB);
//want to get number of 4K transfers
//(and possibly last transfer that is less than than 4K)
}
At this point I would expect a to be 6, but result I get is 96.
Any explanation for this?