Skip to content

Commit 36d3529

Browse files
authored
Merge pull request #2 from velovix/master
Rename IEEE methods to fit convention
2 parents be0b8b4 + c810242 commit 36d3529

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

conv.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ func IntMaxSignedValue(b int) int {
1919
}
2020
}
2121

22-
// IeeeFloatToInt converts a 10 byte IEEE float into an int.
23-
func IeeeFloatToInt(b [10]byte) int {
22+
// IEEEFloatToInt converts a 10 byte IEEE float into an int.
23+
func IEEEFloatToInt(b [10]byte) int {
2424
var i uint32
2525
// Negative number
2626
if (b[0] & 0x80) == 1 {
@@ -48,8 +48,8 @@ func IeeeFloatToInt(b [10]byte) int {
4848
return int(i)
4949
}
5050

51-
// IntToIeeeFloat converts an int into a 10 byte IEEE float.
52-
func IntToIeeeFloat(i int) [10]byte {
51+
// IntToIEEEFloat converts an int into a 10 byte IEEE float.
52+
func IntToIEEEFloat(i int) [10]byte {
5353
b := [10]byte{}
5454
num := float64(i)
5555

0 commit comments

Comments
 (0)