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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:04:14+00:00 2026-05-23T01:04:14+00:00

I am writing a logging system for our site and it looks at changes

  • 0

I am writing a logging system for our site and it looks at changes to Entities to see if they should be logged. I keep having a problem where the version of the Entity in the database shows decimal numbers (in string format) as “132.0000” and the current Entity has it as “132” with no decimal places.
Is there a way that I can force it to either remove the “.0000” from one or add it to the other?

  • 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-23T01:04:15+00:00Added an answer on May 23, 2026 at 1:04 am

    You can try:

    if(132 == Convert.ToDecimal("132.0000")
    {
        //Do Stuff
    }
    

    Replace 132 and “132.0000” with your appropriate values.

    Also, if you wanted to remove the decimal portion of “132.0000”, you can do:

    string dec = "132.0000";
    
    dec = dec.Substring(0,dec.IndexOf("."));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a custom logging system for a project. If a function throws an
I'm writing a method that resets a logging system. I need to get an
I've been writing a custom std::streambuf as part of a logging system. However, I'm
I have a custom logging framework writing to a System.Windows.Forms.TextBox. The way i am
I'm writing some code that handles logging xml data and I would like to
I am writing a C# application. I have (a kind of) logging class. and
What is the ideal code to logging ratio? I'm not used to writing logs
Writing the code for the user authentication portion of a web site (including account
I have a chicken-egg problem. I would like too implement a system in PHP
I'm writing a logging class in C# and would like to add the method

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.