---
title: "Discussion on \"SQL Server extract only the number after the decimal point\" | Hashnode"
description: "Discussion on \"SQL Server extract only the number after the decimal point\". For example, in decimal number 45.90, 45"
url: "https://hashnode.com/posts/sql-server-extract-only-the-number-after-the-decimal-point/61bc7f586916c3593a6b09f0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [SQL Server extract only the number after the decimal point](https://soykanozcelik.hashnode.dev/sql-server-extract-only-the-number-after-the-decimal-point?utm_source=hashnode&utm_medium=feed)

For example, in decimal number 45.90, 45

Dec 17, 2021 · 1 min read · soykanozcelik.hashnode.dev  
Read the article

-   [#sql](https://hashnode.com/tag/sql)
-   [#sql-server](https://hashnode.com/tag/sql-server)

## Written by

[Soykan OZCELIK](https://hashnode.com/@soykanozcelik)

@soykanozcelik

  
[View profile](https://hashnode.com/@soykanozcelik)

Software Developer

## Responses 1

Markdown supported · ⌘↵ to post

[Rajanand Ilangovan](https://hashnode.com/@Rajanand)

[Jan 15, 2022](https://hashnode.com/posts/sql-server-extract-only-the-number-after-the-decimal-point/61bc7f586916c3593a6b09f0/comment/61e32b048a425719c17336a5)

Hi [Soykan OZCELIK](https://hashnode.com/@soykanozcelik),

Just a note on precision for your reference. The precision is the **number of digits in the number** and scale is the number of digits after the decimal. As per the example 45.90 has precision of 4 (as there are 4 digits in 45.90) and scale of 2 (i.e., 90).

[docs.microsoft.com/en-us/sql/t-sql/data-types/pre…](https://docs.microsoft.com/en-us/sql/t-sql/data-types/precision-scale-and-length-transact-sql?view=sql-server-ver15)

Thanks, Rajanand
