Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6025843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:21:33+00:00 2026-05-23T04:21:33+00:00

I am following a tutorial on how to make a game with SDL. At

  • 0

I am following a tutorial on how to make a game with SDL. At a certain point in the tutorial I need to calculate the game’s FPS. The tutorial does the following:

caption << "Average Frames Per Second: " << frame / ( fps.get_ticks() / 1000.f );

Now, I know exactly what the code does, except for the part where it divides by 1000.f. I’ve been looking but just can’t find what .f means.

So my question is, what does .f mean? And why is it there?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:21:33+00:00Added an answer on May 23, 2026 at 4:21 am

    1000 is an int literal.

    1000. is a double literal.

    1000.f is a float literal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was following this tutorial . I need to use a php file's ouput
i am following a tutorial on a simple cocos2d game . however on that
I used the following tutorial to make a parallax content slider for my webiste:
I am following this tutorial to make a repeater control: http://www.w3schools.com/ASPNET/aspnet_repeater.asp I have successfully
I have been following a tutorial to make Android App Widgets, and I was
I came across the following tutorial JSP tricks to make templating easier? for using
I am following this tutorial http://wicket.wordpress.com/2010/01/08/template-for-building-authenticated-webapplication/ in order to learn how to make login
I am following this tutorial on sending activation email: http://www.slideshare.net/JamesEdwardGrayII/sending-email-with-rails I am fairly certain
I am following this tutorial, trying to learn to make Magento extensions, however, in
I'm following a tutorial where you make a checkbox that enables a disabled button

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.