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 131551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:07:23+00:00 2026-05-11T06:07:23+00:00

What are your thoughts on this? I’m working on integrating some new data that’s

  • 0

What are your thoughts on this? I’m working on integrating some new data that’s in a tab-delimited text format, and all of the decimal columns are kept as single integers; in order to determine the decimal amount you need to multiply the number by .01. It does this for things like percentages, weight and pricing information. For example, an item’s price is expressed as 3259 in the data files, and when I want to display it I would need to multiply it in order to get the ‘real’ amount of 32.59.

Do you think this is a good or bad idea? Should I be keeping my data structure identical to the one provided by the vendor, or should I make the database columns true decimals and use SSIS or some sort of ETL process to automatically multiply the integer columns into their decimal equivalent? At this point I haven’t decided if I am going to use an ORM or Stored Procedures or what to retrieve the data, so I’m trying to think long term and decide which approach to use. I could also easily just handle this in code from a DTO or similar, something along the lines of:

public class Product {     // ...     private int _price;     public decimal Price     {         get         {             return (this._price * .01);         }         set         {             this._price = (value / .01);         }     } } 

But that seems like extra and unnecessary work on the part of a class. How would you approach this, keeping in mind that the data is provided in the integer format by a vendor that you will regularly need to get updates from.

  • 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. 2026-05-11T06:07:24+00:00Added an answer on May 11, 2026 at 6:07 am

    ‘Do you think this is a good or bad idea?’

    Bad.

    ‘Should I be keeping my data structure identical to the one provided by the vendor?’

    No.

    ‘Should I make the database columns true decimals?’

    Yes.

    It’s so much simpler to do what’s right. Currently, the data is transmitted with no ‘.’ to separate the whole numbers from the decimals; that doesn’t any real significance.

    The data is decimal. Decimal math works. Use the decimal math provided by your language and database. Don’t invent your own version of Decimal arithmetic.

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

Sidebar

Related Questions

This is more of a philosophical question than anything, so give me your thoughts.
This is an subjective question, I need your feels and thoughts about coding standards,
Give me some of your thoughts on which is a better coding practice/makes more
I'm curious about your thoughts on moving to a new IDE (specifically Eclipse). I
I wanted to get some feedback on your thoughts of storing entire objects into
I am fairly new to php and would love to hear your thoughts on
would love your thoughts on this one. I am using jQuery autocomplete in a
I found this question in an old question in your website so i thought
What are your thoughts on Google Analytics vs other analytics platforms?
What are your thoughts on binary content in XML vs. mere references to the

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.