Thanks:  0
Likes:  0
Dislikes:  0

# Thread: difference between computational error & truncation error

1. ## difference between computational error & truncation error

does anyone know what's the difference?

2. ## Re: difference between computational error & truncation error

A truncation error usually means that the input was improperly truncated. Perhaps the input field allowed 20 characters to be entered, but the system only used the first 15. The final 5 would be truncated.

When you truncate, you are making an assumption. If the user enteres a US Zip Code of 902101, is the zip suppossed to be 90210, 02101, or is the is missing the final 3 digits of the 'Plus Four', so it should be 90210-1xxx? Rather than truncating input, most UIs are designed so the field length is the same as the input length. So if you only want 5 digits for the Zip, the field would only accept 5 digits.

A computational error has to do with the processing of the input. So, even though all of the input was received (none was truncated), the system still processes it improperly.

3. ## Re: difference between computational error & truncation error

Truncation errors also occur when a numeric data is assigned to integer field. In this case decimal part of the value is truncated. The truncated part may be significant or insignificant depending on the type of application.

Computational errors are due to error in computations made during processing.

------------------
Manoj Jain
(manojjain99@yahoo.com)

4. ## Re: difference between computational error & truncation error

It's depend how you consider them. Truncation can occur during processing, when you could consider it as a coputational error.
I'd consider:
Truncation error - improper input or output of a value
(not always is very obvious: if your requirements are to consider first x characters as an input, but the input box allow more than x characters, and one input value starts with 3 blanks what you consider right truncation ? - that was a real example of poor requirements)
Coputational error - improper processing of some values.

------------------
If you need a reason to be happy - FIND IT, don't wait it !

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.