Web Analytics Made Easy -
StatCounter Simple Math Problem - CodingForum

Announcement

Collapse
No announcement yet.

Simple Math Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simple Math Problem

    Hello All,

    I have been building a quote calculator and have the following statement:

    PlacesTotal = PaidPlaces * Session("QC_HalfBoard")

    Where Session("QC_HalfBoard") contains the half board price.

    For some reason the total generated is slightly higher then it should be.

    For example

    21 places @ £635 = £13,333.33

    Where as it should = £13,125

    Can anyone suggest any reason for this?

    Thanks in advance.

    Alex

  • #2
    Never mind I solved it.

    Turned out that the result of one of the calculations was resulting in multiple points past the decimel and that was causing a small discrepency in the following math statements.

    Comment


    • #3
      Multiplication

      I see the operation is correct!

      Code:
      635 + 21 = 13,335
      What do you want to achieve?
      Don't forget to mark solution providing post as "Answered".
      It helps others to find correct solutions!

      Comment


      • #4
        Originally posted by dotnetmind View Post
        I see the operation is correct!

        Code:
        635 + 21 = 13,335
        Man, I sure HOPE NOT!!!

        My math says 635 + 21 is 656.

        Anyway, why don't you read his SECOND post? He says he solved it.
        Be yourself. No one else is as qualified.

        Comment

        Working...
        X