If you want to use a hexadecimal string, try the following:
> var b = new Buffer(4); > b.writeFloatLE(4060, 0) > b.toString('hex') '00c07d45'
And in another way (using your input):
> Buffer('34C87D45', 'hex').readFloatLE(0) 4060.5126953125
UPDATE : new Buffer(size) deprecated, but it is easy to replace it with Buffer.alloc(size) :
var b = Buffer.alloc(4);
source share