Long time learner, first time asker.
Let's pretend I have the variable "Sing" dimensioned as Single, and it's storing the value 5.6
Debug.print Sing displays 5.6, as expected.
When it is stored to the worksheet (Sheet1, A1), it saves "5.59999990463256"
The cell it's going to is formatted as "General".
It works completely fine when stored as a Double.
Any ideas what could be going on here?
I've looked through several posts about Single and decimals, but haven't yet seen anyone who's had this problem.
Sub testing()
Dim Doub As Double
Doub = 5.6
Dim Sing As Single
Sing = 5.6
Debug.Print Sing, Doub
Worksheets("Sheet1").Range("A1").Value = Sing #Pastes 5.59999990463256
Worksheets("Sheet1").Range("A2").Value = Doub #Pastes 5.6
End Sub