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?
I am writing a logging system for our site and it looks at changes
Share
You can try:
Replace 132 and “132.0000” with your appropriate values.
Also, if you wanted to remove the decimal portion of “132.0000”, you can do: