Hi,
Harbour/Clipper:
? 235.1234/100
2.35 not 2.351234
Any express return 2 decimals .
Mysql : select 235.1234/100
2.35123400
Regards!
Shuming Wang
#Include "FiveWin.ch"
FUNCTION Main()
LOCAL nRetDec := 0
SET FIXED ON
? 25141251 / 362
SET DECIMALS TO 10
? 214514.214 / 6325
SET DECIMALS TO 4
? 235.1234 / 100
SET DECIMALS TO 2
? 235.1234 / 100
SET DECIMALS TO 2
nRetDec := 235.1234
? ROUND( nRetDec, 2 ) / 100
RETURN NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 63 guests