Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Slight rounding error

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

    Slight rounding error

    I have a penny error sometimes depending if one calculated field rounds up. For example I have a sub total of $299.00. I have a calculated field for sales tax which is that sub total times the tax rate of .095 percent which equals $28.405. I have the format properties for these fields set to two decimal places and $123,456.78(blank if zero}. Alpha rounds it up to $28.41. So far so good. Then I have a calculated total field which adds the two previous fields together. Really simple. However when Alpha adds the two fields, 299.00 + 28.41 it gives 327.40 instead of 327.41. I had the same thing happen in V4.5. I know there has got to be something really simple I can do to correct this. However, I haven't figured it out. I tried setting the sales tax field to 3 decimal places thinking the dollar format would take care of the third decimal place and let it add correctly, but it showed the 28.405 which I didn't want. Someone tell me how dumb I am and tell me how to fix this. It's not that big of a deal, just annoying.

    #2
    Re: Slight rounding error

    Maybe you just need to round the sum.

    Here's a different approach that computes the total without doing addition.

    Code:
    ?299 * 0.095
    = 28.405
    
    ?299 * 1.095
    = 327.405
    
    ?round(299 * 1.095,2)
    = 327.41

    Comment


      #3
      Re: Slight rounding error

      Thanks Tom for the reply. Sounds so simple but it didn't work. Alpha is really a strange beast, because in its world 299*.095= 28.41 to 2 decimal places but 299*1.095=327.40 to 2 decimal places.
      So to solve my dilema, I made 2 calculated fields to get the correct result.

      One, the field containing the 299 times 1.095 to 3 decimal places, as you suggested. This gives 327.405

      Two, to get the right result, round(the calculated field above,2)which gives 327.41. Ureka. I am coming around , I belive I used a function, round()

      But this still doesn't explain Alpha's weird math, I'll leave that to the alphaolics.

      Comment


        #4
        Re: Slight rounding error

        Sorry about that Tom, I was in such a hurry I didn't notice the last line of your post which is exactly what I did and worked just like you said. I am kinda glad I didn't notice it because it made me fiqure something out for myself. And it appears there will be a lot of that going on as I use Alpha. Even though I did it in around about way. No pun intended

        Comment


          #5
          Re: Slight rounding error

          But this still doesn't explain Alpha's weird math
          The difficulty you see is present in all computer languages. Alpha, and other languages, must use binary math internally, while we use decimal math in the real world. In the same way we struggle to represent one divided by three using decimal math, binary math cannot represent, exactly, certain decimal values. It's a fact of life with computers.... not a glitch in Alpha.

          Comment


            #6
            Re: Slight rounding error

            This a bug.. and a weird one.

            Comment


              #7
              Re: Slight rounding error

              I am humbled to have two certified Alphaholics respond to this situation. I see, like politics and religion, there is a difference of thought on the subject

              One, this is just the way it is and two its a bug

              Anyway, I guess that's the reason Alpha has the round()function!
              I surely appreciate your input and I know I will be calling on the Alphaholic community again. Bear with me and my dumb question as I try to conquer V9.
              Thanks and have a good labor day weekend.

              Comment

              Working...
              X