$longversion

By Spoofing on Oct 03, 2010

$version = 7.12
$longversion = 07120000
$fixversion = 7.12.0.0

alias longversion {
  var %i = 4, %longversion
  while (%i) var %longversion = $+($base($iif($gettok($version,%i,46),$v1,0),10,10,2),%longversion), %i = %i - 1
  return %longversion
}

alias fixversion {
var %longversion = $longversion
return $+($int($calc(%longversion / 1000000)),.,$int($calc(%longversion % 1000000 / 10000)),.,$int($calc(%longversion % 10000 / 100)),.,$int($calc(%longversion % 100)))
}

Comments

Sign in to comment.
WorldDMT   -  Oct 03, 2010

or

alias longversion return $remove($+(0,$version,0000),$chr(46))
alias fixversion return $version $+ .0.0
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.