OH Items - how to convert 0.123 to 123?

Is it possible convert Item label text 0.123 to 123 using Java Class Formatter?
I need to show 123, but store in DB 0.123.
PwrCounter_1min=0.123 I tried :

Number PwrCounter_1min	"Power 1 minute [JS(x1000.js):%.0f W/min]"

x1000.js:

(function(w){ return w * 1000;})(input)

But this shows NaN in sitemap.
How do it right?