Advertisement
jargon

basDemux.bas

Feb 23rd, 2013
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Attribute VB_Name = "basDemux"
  2. Public Function r(v As Double) As Double
  3.     r = v - Int(v)
  4. End Function
  5. Public Function m(v As Double, b As Double) As Double
  6.     m = b * r(v / b)
  7. End Function
  8. Public Function d(v As Double, b As Double, p As Double) As Double
  9.     d = m(Int(v / b ^ p), b)
  10. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement