Paradox Community

Items in pnews.paradox-development

Subject:Re: The difference between currency and number is..
Date:Wed, 12 Dec 2018 15:19:17 +0100
From:=?UTF-8?Q?G=c3=bcnter?= <info@NoSpam-mk-news.com>
Newsgroups:pnews.paradox-development
next Level:

method roundn(n number)number
;rundet richtig auf 2 Stellen, sowohl 12820.4650 als auch 12.0149999
var
   fn number ;fraction
   tn number ;truncate
   s string
endvar
   tn=n.truncate(0)
   fn=n.fraction()*10000
   s=format("W.6,ED,",fn) ;in US i think you need here ED.
   n=numval(s)
   n=n.truncate(0)
   n=n/100
   n=n.round(0)
   n=n/100+tn
   return(n)
endMethod

GŁnter (Berlin)


Copyright © 2004 thedbcommunity.com