Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mastergriller

    hex string to float

    I found the answer to this problem. set hex "d32942bc" set bin [binary format H8 $hex] binary scan $bin f* float puts "$float" Being so new to Tcl I don't know if there's a "gotsha" in this but it seems to work. If anyone has more information of when this won't work please let me know...
  2. mastergriller

    hex string to float

    I'm new to Tcl and need some help. I have a string that represents a float - example: bc4229d3 = -0.011850791. I can convert it to an integer but not to a float. In C I can cast it but I can't find a way to do that in Tcl. I know I can call a C routine but I would prefer to do it in Tcl only if...

Part and Inventory Search

Back
Top