Ok so i need to take seconds and turn them into Hours, mins, and the leftover seconds. The problem is i dont know how to use the remainders(Ex: if i had 3.98 how would i use the .98) any help is appreciated.
bigtpsychoboy
0
Newbie Poster
Recommended Answers
Jump to PostI'm not too sure if this will work but, you can try some crazy casting.
double hms = (si / 3600);
int remainder = (int)hms;
double remainder2 = hms - (double)remainder;Note: it's 4 a.m. so don't quote me on this. My linux machine with java on …
All 4 Replies
bigtpsychoboy
0
Newbie Poster
CodeMasterFlex
0
Newbie Poster
jerbo
0
Junior Poster in Training
jerbo
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.