Do not trust a computer...
-
Found in legacy code...
Dim startbit As Integer = ((6 * data.i) + (3 * data.j) + 16)
startbit = Math.Ceiling(startbit / 16) * 16If startbit Mod 16 <> 0 Then Throw New Exception("you don't know how to round")
:) Always check what computer is doing
-
Found in legacy code...
Dim startbit As Integer = ((6 * data.i) + (3 * data.j) + 16)
startbit = Math.Ceiling(startbit / 16) * 16If startbit Mod 16 <> 0 Then Throw New Exception("you don't know how to round")
:) Always check what computer is doing
notmasteryet wrote:
startbit = Math.Ceiling(startbit / 16) * 16
Typical and terrible VB approach. :/
Greetings - Gajatko Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.