Author Topic: Probably Pointless Program  (Read 26877 times)

0 Members and 1 Guest are viewing this topic.

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Probably Pointless Program
« Reply #60 on: October 08, 2010, 06:05:23 pm »
Sorry meishe91 for not testing it more than just the months, I really should have.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Probably Pointless Program
« Reply #61 on: October 08, 2010, 06:14:08 pm »
Don't worry about it. I was just to tired and lazy to fully come up with my own routines so that's why I use part of yours. If I have time, which I should, I'll try to get a working version. By the way, what are you checking your calculator against? Like a website or what?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Probably Pointless Program
« Reply #62 on: October 08, 2010, 08:26:07 pm »
Don't worry about it. I was just to tired and lazy to fully come up with my own routines so that's why I use part of yours. If I have time, which I should, I'll try to get a working version. By the way, what are you checking your calculator against? Like a website or what?

My cell phone and my planner

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Probably Pointless Program
« Reply #63 on: October 08, 2010, 09:58:46 pm »
Ah ok. Gotcha. Well I shall be working on this issue.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Probably Pointless Program
« Reply #64 on: October 11, 2010, 11:28:33 pm »
I figured it out!!!! My current version on my calc just forgets to add in leap years if it's a january!!! Fixing when i get the chance.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Probably Pointless Program
« Reply #65 on: October 12, 2010, 02:22:11 am »
But leap years shouldn't affect January, I thought.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Probably Pointless Program
« Reply #66 on: October 12, 2010, 01:58:35 pm »
If it's January it "forgets" to calculate past leap years

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Probably Pointless Program
« Reply #67 on: October 12, 2010, 10:06:46 pm »
Aren't leap years affecting February? Example, in 2000, 2004 and 2008 February has 29 days instead of 28.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Probably Pointless Program
« Reply #68 on: October 12, 2010, 10:18:47 pm »
Oh, I see what you mean I think. So basically what your saying is that the "if month is greater than or equal to February add a leap year" thing needs to be taken out and just have the iPart( by itself?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Probably Pointless Program
« Reply #69 on: October 13, 2010, 05:48:55 pm »
Oh, I see what you mean I think. So basically what your saying is that the "if month is greater than or equal to February add a leap year" thing needs to be taken out and just have the iPart( by itself?

I just added if month is january, ipart((c-1)/4) to add all the years before and not that year

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Probably Pointless Program
« Reply #70 on: October 13, 2010, 08:00:45 pm »
Hmm, well I don't know if all that is necessary to be honest. I just put iPart(Year/4) and it seems to work perfectly fine.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Probably Pointless Program
« Reply #71 on: October 13, 2010, 08:05:10 pm »
But if it's a January of a leap year, it's affected.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Probably Pointless Program
« Reply #72 on: October 13, 2010, 09:09:13 pm »
Ya I know. Which means that any month would trigger that. So you don't need the conditional on it.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Probably Pointless Program
« Reply #73 on: October 13, 2010, 09:10:49 pm »
What i mean is that if don't have it, i believe that january would start 1 day late.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Probably Pointless Program
« Reply #74 on: October 13, 2010, 09:35:49 pm »
Well mine seems to work ??? I don't know though. I don't know if you're modifying your code or the optimized one I gave, I shall test more though.

Edit:
Nevermind, mine doesn't work correctly all the time. I'd have to see your code now to see how to modify mine.
« Last Edit: October 13, 2010, 09:43:09 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)