Edit: Stupid me I for got the numberFormat:

Code CFM:
<cfoutput>#numberFormat(getRefNumber.ref_number, "00009" )#</cfoutput>