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

  • SEARCH
  • Home
  • 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 306549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:28:38+00:00 2026-05-12T07:28:38+00:00

If a customer were silly (being polite here) enough to try and add, as

  • 0

If a customer were “silly” (being polite here) enough to try and add, as an example, 4.6 items to their basket, what would you expect to see? or how would you deal with it. Obviously, we only deal with digital quantities (our hacksaw broke last week).

There seems to be a lot of inconsistence across the web.

  • Amazon Rounds down (4.6->4, 1.3->1)
  • FireBox Rounds (4.6->5, 1.3->1)
  • Ebuyer ignores the input (no error)
  • Expansys removes the item from your basket
  • I’m assuming some site will show an error

Which is the best solution

  • 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-12T07:28:38+00:00Added an answer on May 12, 2026 at 7:28 am
    1. Add JavaScript verification that would remove non-numeric input while the user is typing in

    2. Implement backward solution for the situation when JavaScript is off, either display an error message or round the value but then display a message saying “your input has been adjusted”

    ADDED: Also be aware that the character that separates the fractional part from the integer one differs from country to country. In US I believe it is ‘.’, in Europe it is usually ‘,’. If your applications is targeted at customers in different countries with varying number representation, it would make sense to implement the support for both characters in your application logic. Otherwise some users will get format error messages without knowing why – non-techie people are often unaware of this format issue.

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

Sidebar

Related Questions

A customer of ours has Quickbooks 2005 and is looking to have their web
Our customer would like to know who is online and currently using the custom
I have a silly question. I would like to know if there is performance
Here is an example of the structure I'm trying to achieve. I'll just setup
Customer has shortcuts in their data where they have a quantity of records in
On my website, people can add an item to their wishlist. When X number
Table: Customer with columns Start_Time and End_Time. I need to add a new column
apologise for silly question but there you go. Sql server 2 tables Customer and
I never did Console programming so got stuck in this silly thing: Console.Write(Enter customer's
Customer wants to move from SQL server to Sybase database. Don't know if LINQ

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.