Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
sql_server 217
t-sql 211
tsql 116
sqlserver 96
BRH 78
#SQLServer 66
#TSQL 56
SQL Server 34
function 11
SSMS 9

Archive · View All
August 2007 17
August 2010 8
June 2012 7
June 2011 7
November 2007 7
August 2012 6
May 2012 6
November 2011 6
August 2011 6
October 2011 6

Madhivanan's TSQL Blog

Converting Hexadcimal to decimal

Feb 3 2010 2:04AM by Madhivanan   

Pinal Dave in his post asked about the simple ways to convert hexadecimal values to decimal values.

Here are some methods:

87235 is an integer value whose hexadecimal is 0x000154C3.

In this case make use of Implicit conversion.

declare @hexa varbinary(10)
set @hexa=0x000154C3
select 
	@hexa as hexadecimal_value,
	@hexa*1 as integer_value

If the value is decimal, make use of CAST function

declare @hexa varbinary(10)
set @hexa=0x060100019F4F0D00
select 
	@hexa as hexadecimal_value,
	cast(@hexa as decimal(12,2)) as decimal_value

So for the safer side, it is always better to make use of CAST function

Tags: t-sql, sql_server, decimal, Hexadecimal,


Madhivanan
3 · 40% · 12936
4
 
0
Lifesaver
 
0
Refreshed
 
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

"Converting Hexadcimal to decimal" rated 5 out of 5 by 4 readers
Converting Hexadcimal to decimal , 5.0 out of 5 based on 4 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]