All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
32
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to For Beginners
Is there some way I can get the value of the non integral portion of a double
For Beginners
Started by
Unliterate
May 30, 2004 08:47 PM
20
comments, last by
Unliterate
19 years, 10 months ago
Prev
1
2
3
(current)
RuneLancer
253
May 31, 2004 06:58 AM
sprintf() is your friend.
That would do it in no time at all.
Cancel
Save
Advertisement
psamty10
148
May 31, 2004 01:35 PM
double foo = 1.333;
double non_integral_foo = 1.333 - (double)((int)foo);
Cancel
Save
Prev
1
2
3
(current)
This topic is closed to new replies.
Advertisement
Popular Topics
How do you manage yourself and your time as years pass on?
GDNet Lounge
Too many managers?
General and Gameplay Programming
Do your part to stop global warming and climate change
GDNet Lounge
C++ how do you use dependency injection?
For Beginners
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
Advertisement
Recommended Tutorials
Localizing Your Indie Game: Crazy Idea or Growth Hack?
Production and Management
Improve Player Retention Reacting to Behavior [Server Scripts]
General and Gameplay Programming
Toon Shader from Scratch Explained
Graphics and GPU Programming
Skeletal Animation Optimization Tips and Tricks
Graphics and GPU Programming
An Overview to Game Development
Career Development
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top