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

Ask A Question

Stats

  • Questions 123k
  • Answers 123k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer In my experience, the lower level your code is (short… May 12, 2026 at 1:00 am
  • Editorial Team
    Editorial Team added an answer This is something I have written a while ago for… May 12, 2026 at 1:00 am
  • Editorial Team
    Editorial Team added an answer What happens when you link to copy(T[]) instead of copy(Object[])?… May 12, 2026 at 1:00 am

Related Questions

What are your thoughts on this? I'm working on integrating some new data that's
I am working on a PHP application that intends to ease company workflow and
I am in the process of beginning work on several ASP.NET custom controls. I
I've done a fair amount of work on MVC on the web, and we're
I am thinking it is a best practice to declare them as static, as

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.