Help with converting function to Ruby code

Hey there. I have a GOlang code which converts a 32 bit single precision hex to float, I need to implement it in a Ruby project, I’ve been searching for long days without success. Could anyone gimme a ltl help? Below my go code I need to write in Ruby;

https://play.golang.org/p/gWOv6g2HEQD

Any help would be appreciated. Tnx.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs