Get Last two digits of number

Code Title: Get Last two digits of number
Language: ColdFusion

Description:

The function can get last digits, that is specified. In this example, it gets last 4 digits which would be telephone extension.

Added: 08/11/2008
Profile: Syed
User Name: syed

Recent Entries by Author:
Coming Soon!

Note: Please, always give credit to author for his/her work, if used in production environment.

Code

<!--- Set var --->
<cfset telephonenumber = "909-954-9898">

<!--- Get last 4 digits, that would be extension in this case --->
<cfoutput>
#Right(telephonenumber, 4)#
</cfoutput>