Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My Fomula
#6
Except for multiplication still returns a floating-point value, but A is a non-floating point variable, so the result would require a conversion still. :wink:

Results:

Code:
%Faster   -71.4|   -64.3|   -73.3|   -64.3|     -50|   -66.7|   -64.3|   -66.7|   -61.5|   -66.7
Test1         4|       5|       4|       5|       6|       5|       5|       5|       5|       5
Test2        14|      14|      15|      14|      12|      15|      14|      15|      13|      15

Tests:
Code:
Public Sub TestOne()
Dim a As Byte
    a = 99
    a = a \ 4
End Sub

Public Sub TestTwo()
Dim a As Byte
    a = 99
    a = a * 0.25
End Sub

Even if the conversion wasn't happening and a whole number was used like 100, it still would be about half the speed... not sure why in that case.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)