Can someone help me convert decimal to hexadecimal using function node

I want to convert decimal number to hex through function node

example : 9181 to 23DD

Can someone help

image

Hey @Priya_Kumar,

I had to do a bunch of this stuff at my old job for converting card numbers between different formats, In theory you don’t need a function you can just use yourNumber.toString(16) in an expression but to be complete the workflow below shows it in a function.

image

Example Workflow
3 Likes

thanksa lot jon. solved

1 Like