Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Truncate Numeric Fld

Posted on 2010-11-12
2
297 Views
Last Modified: 2012-05-10
I have a SQL Tbl with the fld  LOBtotal which is Numeric 18,2. I want to truncate the decimal so that a number that currently displays as 178.55 looks like 178. I do not wish to round. I simply want to drop everything starting with the decimal.
0
Comment
Question by:mburk1968
2 Comments
 
LVL 11

Accepted Solution

by:
N R earned 500 total points
ID: 34123026
select cast(LOBtotal as int)
from table
0
 
LVL 32

Expert Comment

by:Erick37
ID: 34123035
select floor(LOBtotal)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question