Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Decimals 0-60

I want to make that when you multiply and the decimal gets over 60 it will add one more on the normal number (hard to explain but like a clock: 7:59, 8:00 get it?
Tagged:

Replies

  • Duncan CDuncan C Posts: 9,114Tutorial Authors, Registered Users @ @ @ @ @ @ @
    You want to do math in base 60, like a clock.

    Use integer division and the modulo operator:
    int totalSeconds = 45345;
    int minutes = totalSeconds/60;
    int seconds = totalSeconds%60;
    Regards,
    Duncan C
    WareTo

    widehead.gif
    Animated GIF created with Face Dancer, available for free in the app store.

    I'm available for one-on-one help at CodeMentor
  • EmilioGainesEmilioGaines Posts: 30New Users
    Where do i put this?
  • baja_yubaja_yu San FranciscoPosts: 6,215Moderators, Registered Users Admin
    You spread it on a piece of bread then heat it up in an oven for 10 minutes at 150 degrees (Celsius).
  • EmilioGainesEmilioGaines Posts: 30New Users
    Well thats fantastic! :D
  • Duncan CDuncan C Posts: 9,114Tutorial Authors, Registered Users @ @ @ @ @ @ @

    Where do i put this?

    You need to invest a little effort in figuring this stuff out.

    If you have no idea how to structure an iOS application that gathers info from a user, does processing on it, and returns an answer, then you need to buy a book on iOS development, study some tutorials online, watch the Stanford iOS development video series, or something. Invest some effort in figuring this stuff out. This is day one material.

    Regards,
    Duncan C
    WareTo

    widehead.gif
    Animated GIF created with Face Dancer, available for free in the app store.

    I'm available for one-on-one help at CodeMentor
  • GazGaz Posts: 219Registered Users @ @
    baja_yu said:

    You spread it on a piece of bread then heat it up in an oven for 10 minutes at 150 degrees (Celsius).


    .......lol
Sign In or Register to comment.