Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...If there has ever been a justification needed for access to the net during working hours, just referring to this site should suffice. Fantastic!..."

Geography

Where in the world do Tek-Tips members come from?

Double to get decimal placesHelpful Member! 

cyprus106 (Programmer)
24 Jan 08 5:19
God this is embarassing... But if you check my posting time, you'll understand.

Here's the exact code:
double secondBreakdown = WorldTimeTrackbar->Position / 4;

The position of the trackbar can be anywhere between 1 and 60, progressing by 1 each time. So it should be spitting me back decimal points, but it's not. Every time it's getting rounded to a whole number and I really need decimal places. And I don't know why... But the sun's about to rise, so I'm finally coming to ya'll for help. Please help!

Winner gets a star!!

Cyprus

Helpful Member!  2ffat (Programmer)
24 Jan 08 7:59
I'm not familiar with WorldTimeTrackbar but have you tried:
double secondBreakdown = (float)WorldTimeTrackbar->Position / 4.0;

James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close