TBV4函數(shù)說明語法參數(shù)備注示例_第1頁
TBV4函數(shù)說明語法參數(shù)備注示例_第2頁
TBV4函數(shù)說明語法參數(shù)備注示例_第3頁
TBV4函數(shù)說明語法參數(shù)備注示例_第4頁
TBV4函數(shù)說明語法參數(shù)備注示例_第5頁
已閱讀5頁,還剩80頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

1、分類索引數(shù)學函數(shù)9abs9acos9acosh9asin9asinh10atan10atan210atanh10ceiling11combin11cos12cosh12ctan12even12exp12fact13floor13fracpart13intpart14ln14log14mod14neg15odd15pi15power15rand16round16rounddown16roundup17sign17sin17sinh17sqr18sqrt18tan18tanh18字符串函數(shù)19exact19left19len19lower19mid20right20text20trim20uppe

2、r20value21顏色函數(shù)21black21blue21cyan21darkbrown21darkcyan22darkgray22darkgreen22darkmagenta22darkred22defaultcolor23green23lightgray23magenta23red23rgb24white24yellow24時間函數(shù)24currentdate24currenttime25dateadd25datediff25datetimetostring25datetostring25day26friday26hour26hourfromdatetime26makedate26maked

3、atetime27maketime27millisecond27millisecondfromdatetime27minute27minutefromdatetime28monday28month28monthfromdatetime28saturday28second29secondfromdatetime29stringtodate29stringtodatetime29stringtotime29sunday30systemdatetime30thursday30timediff30timetostring30tuesday31wednesday31weekday31weekdayfro

4、mdatetime31year31yearfromdatetime31數(shù)據(jù)函數(shù)32barcount32barstatus32c/close32currentbar32d/date33h/high33historydataexist33l/low33o/open33openint34t/time34v/vol34屬性函數(shù)34barinterval34bartype34bidasksize35bigpointvalue35canmarketorder35canshorttrade36canstoporder36cantrade36category36contractsize37contractun

5、it37currencyname37currencysymbol37datacount37exchangename38expireddate38getuserid38initialmargin38maintenancemargin38marginratio39maxbarsback39maxsingletradesize39minmove39pricescale39symbol40symbolname40symboltype40行情函數(shù)40q_askprice40q_askvol40q_avgprice41q_askpriceflag41q_bidprice41q_bidpriceflag41

6、q_bidvol41q_bidvol42q_high42q_hishigh42q_hislow42q_insidevol43q_last43q_lastdate43q_lastflag43q_lasttime43q_lastvol44q_low44q_lowerlimit44q_open44q_openint44q_openintflag45q_oscillation45q_outsidevol45q_preopenint45q_presettleprice45q_pricechg46q_pricechgratio46q_tickchg46q_todayentryvol46q_todayexi

7、tvol46q_totalvol47q_turnover47q_upperlimit47quotedataexist47帳戶函數(shù)47a_accountid47a_brokerid48a_buyavgprice48a_buyfreeze48a_buymargin48a_buyposition48a_buyprofitloss48a_currentequity49a_deleteorder49a_freemargin49a_getlastopenorderindex50a_getlastorderindex50a_getopenordercount50a_getordercount51a_open

8、orderbuyorsell51a_openordercontractno52a_openorderentryorexit52a_openorderfilledlot52a_openorderfilledprice53a_openorderlot53a_openorderprice54a_openorderstatus54a_openordertime54a_orderbuyorsell55a_ordercontractno55a_ordercanceledlot56a_orderentryorexit56a_orderfilledlot56a_orderfilledprice57a_orde

9、rlot57a_orderprice57a_orderstatus58a_ordertime58a_positionprofitloss59a_previousequity59a_profitloss59a_sendorder59a_sellavgprice60a_sellfreeze60a_sellmargin60a_sellposition60a_sellprofitloss60a_todaybuyposition61a_todaydeposit61a_todaydrawing61a_todaysellposition61a_totalavgprice61a_totalposition62

10、accountdataexist62枚舉函數(shù)62enum_buy62enum_canceled62enum_canceling63enum_declare63enum_declared63enum_deleted63enum_entry63enum_exit63enum_exittoday64enum_filled64enum_fillpart64enum_sell64交易函數(shù)64buy64buytocover65sell65sellshort66其他函數(shù)67alert67alertenabled67commentary67fileappend67filedelete68formulaname

11、68getglobalvar68gettbprofilestring68gettbprofilestring2file68iif69iifstring69invalidinteger69invalidnumeric69invalidstring70playwavsound70plotbool70plotnumeric70plotstring71setglobalvar71settbprofilestring71settbprofilestring2file72unplot72策略性能72avgbarseventrade72avgbarslostrade72avgbarswintrade73gr

12、ossloss73grossprofit73largestlostrade73largestwintrade73maxconseclosers74maxconsecwinners74maxcontractsheld74netprofit74numeventrades74numlostrades74numwintrades75percentprofit75totalbarseventrades75totalbarslostrades75totalbarswintrades75totaltrades76策略狀態(tài)76avgentryprice76barssinceentry76barssinceex

13、it76barssincelastentry76contractprofit77currentcontracts77currententries77entrydate77entryprice78entrytime78exitdate78exitprice78exittime79lastentrydate79lastentryprice79lastentrytime79marketposition79maxcontracts80maxentries80maxpositionloss80maxpositionprofit80positionprofit81組合性能81portfolio_gross

14、loss81portfolio_grossprofit81portfolio_maxdrawdown81portfolio_maxdrawdownratio81portfolio_netprofit82portfolio_percentprofit82portfolio_numwintrades82portfolio_numlosstrades82portfolio_totaltrades82組合狀態(tài)83portfolio_currentcapital83portfolio_currententries83portfolio_currentequity83portfolio_initcapit

15、al83portfolio_positionprofit83portfolio_totalprofit84portfolio_usedmargin84字母索引a_accountid43a_brokerid43a_buyavgprice44a_buyfreeze44a_buymargin44a_buyposition44a_buyprofitloss44a_currentequity44a_deleteorder45a_freemargin45a_getlastopenorderindex45a_getlastorderindex46a_getopenordercount46a_getorder

16、count47a_openorderbuyorsell47a_openordercontractno47a_openorderentryorexit48a_openorderfilledlot48a_openorderfilledprice49a_openorderlot49a_openorderprice49a_openorderstatus50a_openordertime50a_orderbuyorsell50a_ordercanceledlot51a_ordercontractno51a_orderentryorexit52a_orderfilledlot52a_orderfilled

17、price52a_orderlot53a_orderprice53a_orderstatus53a_ordertime54a_positionprofitloss54a_previousequity54a_profitloss55a_sellavgprice56a_sellfreeze56a_sellmargin56a_sellposition56a_sellprofitloss56a_sendorder55a_todaybuyposition56a_todaydeposit57a_todaydrawing57a_todaysellposition57a_totalavgprice57a_to

18、talposition57abs5accountdataexist58acos5acosh5alert62alertenabled62asin5asinh6atan6atan26atanh6avgbarseventrade68avgbarslostrade68avgbarswintrade68avgentryprice72barcount28barinterval30barssinceentry72barssinceexit72barssincelastentry72barstatus28bartype30bidasksize31bigpointvalue31black17blue17buy6

19、0buytocover61c/close28canmarketorder31canshorttrade31canstoporder32cantrade32category32ceiling7combin7commentary63contractprofit73contractsize32contractunit33cos7cosh8ctan8currencyname33currencysymbol33currentbar28currentcontracts73currentdate20currententries73currenttime20cyan17d/date28darkbrown17d

20、arkcyan17darkgray18darkgreen18darkmagenta18darkred18datacount33dateadd21datediff21datetimetostring21datetostring21day22defaultcolor18entrydate73entryprice73entrytime74enum_buy58enum_canceled58enum_canceling58enum_declare58enum_declared59enum_deleted59enum_entry59enum_exit59enum_exittoday59enum_fille

21、d59enum_fillpart60enum_sell60even8exact14exchangename33exitdate74exitprice74exittime74exp8expireddate34fact9fileappend63filedelete63floor9formulaname63fracpart9friday22getglobalvar64gettbprofilestring64gettbprofilestring2file64getuserid34green19grossloss69grossprofit69h/high29historydataexist29hour2

22、2hourfromdatetime22iif64iifstring65initialmargin34intpart10invalidinteger65invalidnumeric65invalidstring65l/low29largestlostrade69largestwintrade69lastentrydate75lastentryprice75lastentrytime75left15len15lightgray19ln10log10lower15magenta19maintenancemargin34makedate22makedatetime23maketime23marginr

23、atio34marketposition75maxbarsback35maxconseclosers69maxconsecwinners69maxcontracts76maxcontractsheld70maxentries76maxpositionloss76maxpositionprofit76maxsingletradesize35mid15millisecond23millisecondfromdatetime23minmove35minute23minutefromdatetime24mod10monday24month24monthfromdatetime24neg11netpro

24、fit70numeventrades70numlostrades70numwintrades70o/open29odd11openint29percentprofit71pi11playwavsound65plotbool66plotnumeric66plotstring66portfolio_currentcapital78portfolio_currententries79portfolio_currentequity79portfolio_grossloss77portfolio_grossprofit77portfolio_initcapital79portfolio_maxdrawd

25、own77portfolio_maxdrawdownratio77portfolio_netprofit77portfolio_numlosstrades78portfolio_numwintrades78portfolio_percentprofit78portfolio_positionprofit79portfolio_totalprofit79portfolio_totaltrades78portfolio_usedmargin79positionprofit76power11pricescale35q_askprice36q_askpriceflag37q_askvol36q_avg

26、price36q_bidprice37q_bidpriceflag37q_bidvol37q_bidvol38q_high38q_hishigh38q_hislow38q_insidevol38q_last39q_lastdate39q_lastflag39q_lasttime39q_lastvol39q_low40q_lowerlimit40q_open40q_openint40q_openintflag40q_oscillation41q_outsidevol41q_preopenint41q_presettleprice41q_pricechg41q_pricechgratio42q_t

27、ickchg42q_todayentryvol42q_todayexitvol42q_totalvol42q_turnover43q_upperlimit43quotedataexist43rand12red19rgb19right16round12rounddown12roundup12saturday24second24secondfromdatetime25sell61sellshort62setglobalvar67settbprofilestring67settbprofilestring2file67sign13sin13sinh13sqr13sqrt14stringtodate2

28、5stringtodatetime25stringtotime25sunday25symbol35symbolname36symboltype36systemdatetime26t/time30tan14tanh14text16thursday26timediff26.timetostring26totalbarseventrades71totalbarslostrades71totalbarswintrades71totaltrades71trim16tuesday26unplot68upper16v/vol30value16wednesday27weekday27weekdayfromda

29、tetime27white20year27yearfromdatetime27yellow20數(shù)學函數(shù)abs說明返回參數(shù)的絕對值。語法numeric abs(numeric number)參數(shù)number 需要計算其絕對值的實數(shù)。備注返回參數(shù)的絕對值,參數(shù)絕對值是參數(shù)去掉正負號后的數(shù)值。示例abs (2) = 2;abs (-2) = 2;abs (0) = 0;abs (-5.3) = 5.3;abs (10.43) = 10.43。acos說明返回參數(shù)的反余弦值。語法numeric acos(numeric number)參數(shù)number 角度的余弦值,必須介于 -11 之間。如果要用度表

30、示反余弦值,需將結果再乘以 180/pi()。 備注返回數(shù)字的反余弦值。反余弦值為一個角度,而該角度的余弦值即為該函數(shù)的參數(shù)。返回的角度值以弧度表示,范圍是0到pi。示例acos (-0.5) = 2.094395(2* pi /3 弧度);acos (-0.5)*180/ pi () = 120(度)。acosh說明返回參數(shù)的反雙曲余弦值。語法numeric acosh(numeric number)參數(shù)number 大于等于 1 的實數(shù)。備注返回參數(shù)的反雙曲余弦值。參數(shù) number 必須大于或等于 1。反雙曲余弦值的雙曲余弦即為該函數(shù)的參數(shù),因此 acosh (cosh(number)

31、等于 number。示例acosh (1) = 0;acosh (10) = 2.993223。asin說明返回參數(shù)的反正弦值。語法numeric asin(numeric number)參數(shù)number 角度的正弦值,必須介于 -11 之間。備注返回參數(shù)的反正弦值。反正弦值為一個角度,該角度的正弦值即等于此函數(shù)的參數(shù)。返回角度的單位為弧度,且范圍在 - pi /2 到 pi /2 之間。示例asin (-0.5) = -0.5236 ( - pi /6 弧度);asin (-0.5)*180/ pi () = -30 (度)。asinh說明返回參數(shù)的反雙曲正弦值。語法numeric asin

32、h(numeric number)參數(shù)number 任意實數(shù)。備注返回參數(shù)的反雙曲正弦值,反雙曲正弦值的雙曲正弦即等于此函數(shù)的參數(shù)值,因此,asinh (sinh( number) 的值等于 number。示例asinh (-2.5) = -1.64723;asinh (10) = 2.998223。atan說明返回參數(shù)的反正切值。語法numeric atan(numeric number)參數(shù)number 角度的正切值。備注返回參數(shù)的反正切值。反正切值為角度,其正切值即等于參數(shù)值。返回的角度值將以弧度表示,范圍為 -pi/2 到 pi/2。如果要用度表示反正切值,需將結果再乘以 180/(

33、)。示例atan (1) = 0.785398(pi /4 弧度);atan (1)*180/() = 45(度)。atan2說明返回給定的 x 及 y 坐標值的反正切值。語法numeric atan2(numeric x_num,numeric y_num)參數(shù)x_num 點的 x 坐標。y_num 點的 y 坐標。 備注返回給定的 x 及 y 坐標值的反正切值。反正切的角度值等于 x 軸與通過原點和給定坐標點(x_num, y_num)的直線之間的夾角。結果以弧度表示并介于 - pi到 pi之間(不包括 - pi)。結果為正表示從 x 軸逆時針旋轉的角度,結果為負表示從x 軸順時針旋轉的角

34、度。atan2 (a, b) 等于 atan(b/a),除非 atan2值為零。如果 x_num 和 y_num 都為零,atan2返回無效值。如果要用度表示反正切值,需將結果再乘以 180/ pi()。 示例atan2 (1, 1) = 0.785398 (pi/4弧度);atan2 (-1, -1) = -2.35619 (-3* pi /4 弧度);atan2 (-1, -1)*180/ pi () = -135 (度)。 atanh說明返回參數(shù)的反雙曲正切值。語法numeric atanh(numeric number)參數(shù)number -11 之間的任意實數(shù)。備注返回參數(shù)的反雙曲正切

35、值,參數(shù)必須在 -11 之間(除去 -1 和 1)。反雙曲正切值的雙曲正切即為該函數(shù)的參數(shù)值,因此 atanh (tanh(number) 等于 number。示例atanh (0.76159416) = 1 (近似值);atanh (-0.1) = -0.10034。ceiling說明將參數(shù) number 沿絕對值增大的方向,舍入為最接近的整數(shù)或基數(shù)significance的最小倍數(shù)。語法numeric ceiling(numeric number,numeric significance)參數(shù)number 待舍入的數(shù)值。significance 基數(shù)。備注將參數(shù) number 沿絕對值增大

36、的方向,舍入為最接近的整數(shù)或基數(shù)significance的最小倍數(shù)。例如,如果您不愿意使用像分這樣的零錢,而所要購買的商品價格為 $4.42,可以用公式 = ceiling (4.42,0.1) 將價格舍入為以角表示。如果參數(shù)為非數(shù)值型,ceiling返回無效值。無論數(shù)字符號如何,都按遠離 0 點方向舍入。如果數(shù)字已經(jīng)為 significance 的倍數(shù),則不進行舍入。如果 number 和 significance 符號不同,ceiling返回無效值。示例ceiling (2.5, 1) = 3;ceiling (-2.5, -2) = -4;ceiling (-2.5, 2) = 無效值;

37、ceiling (1.5, 0.1) = 1.5;ceiling (0.234, 0.01) = 0.24。 combin說明計算從給定數(shù)目的對象集合中提取若干對象的組合數(shù)。語法integer combin (numeric number,numeric number_chosen)參數(shù)number 對象總的數(shù)量。number_chosen 每一組合中對象的數(shù)量。備注數(shù)字參數(shù)截尾取整。如果任一參數(shù)為非數(shù)值型,combin返回無效值。如果 number 0、number_chosen 0 或 number number_chosen,combin返回無效值。對象組合是對象整體的任意子集,且不論其

38、內(nèi)部順序。組合與排列不同,排列數(shù)與對象順序有關。假設從 8 名候選者中選出 2 人組成一隊,求所有可能的組合數(shù):combin (8, 2 ) 等于 28 種編隊方案。 示例combin(8, 2) = 28。 cos說明返回給定角度的余弦值。語法numeric cos(numeric number)參數(shù)number 為需要求余弦的角度,以弧度表示。如果參數(shù)的單位是度,則可以乘以pi ()/180 將其轉換為弧度。備注返回給定角度的余弦值。示例cos (1.047) = 0.500171;cos (60*pi()/180) = 0.5,即 60 度的余弦值。cosh說明返回參數(shù)的雙曲余弦值。語法

39、numeric cosh(numeric number)參數(shù)number 表示要為其找到雙曲線余弦的任意實數(shù)。 備注返回參數(shù)的雙曲余弦值。示例cosh (4) = 27.30823;cosh (exp(1) = 7.610125,式中 exp(1) 等于 e,即自然對數(shù)的底數(shù)。ctan說明返回給定角度的余切值。語法numeric ctan(numeric number)參數(shù)number 需要計算其反余切值的實數(shù)。備注返回給定角度的余切值。示例ctan (0.785) = 1.00080;ctan (45* pi ()/180) = 1。even說明返回沿絕對值增大方向取整后最接近的偶數(shù)。語法i

40、nteger even(numeric number)參數(shù)number 所要取整的數(shù)值。備注返回沿絕對值增大方向取整后最接近的偶數(shù)。使用該函數(shù)可以處理那些成對出現(xiàn)的對象。如果 number 為非數(shù)值參數(shù),則 even返回無效值。不論 number 的正負號如何,函數(shù)都向遠離零的方向舍入,如果 number 恰好是偶數(shù),則無需進行任何舍入處理。 示例even (1.5) = 2;even (3) = 4;even (2) = 2;even (-1) = -2。 exp說明返回e的number次冪。語法numeric exp(numeric number)參數(shù)number 為底數(shù)e的指數(shù)。備注返回

41、e的number次冪。常數(shù) e 等于 2.71828182845904,是自然對數(shù)的底數(shù)。如果要計算以其他常數(shù)為底的冪,請用指數(shù)操作符()。exp函數(shù)是計算自然對數(shù)的 ln 函數(shù)的反函數(shù)。示例exp (1) = 2.718282(e 的近似值);exp (2) = e2 或 7.389056;exp (ln(3) = 3。 fact說明返回數(shù)的階乘。語法integer fact(numeric number)參數(shù)number 要計算其階乘的非負數(shù)。如果輸入的number不是整數(shù),則截尾取整。備注返回數(shù)的階乘。示例fact (1) = 1;fact (1.9) = fact (1) 等于 1;f

42、act (0) = 1;fact (-1) = 無效值;fact (5) = 1*2*3*4*5 等于 120。 floor說明將參數(shù) number 沿絕對值減小的方向去尾舍入,使其等于最接近的 significance 的倍數(shù)。語法numeric floor(numeric number,numeric significance)參數(shù)number 所要舍入的數(shù)值。significance 基數(shù)備注返將參數(shù) number 沿絕對值減小的方向去尾舍入,使其等于最接近的 significance 的倍數(shù)。如果任一參數(shù)為非數(shù)值參數(shù),則floor將返回錯誤值無效值。如果number和significa

43、nce符號相反,則函數(shù)floor將返回錯誤值無效值。不論number的正負號如何,舍入時參數(shù)的絕對值都將減小。如果number 恰好是significance 的倍數(shù),則無需進行任何舍入處理。 示例floor (2.5, 1) = 2;floor (-2.5, -2) = -2;floor (-2.5, 2) = 無效值;floor (1.5, 0.1) = 1.5;floor (0.234, 0.01) = 0.23。fracpart說明返回實數(shù)舍入后的小數(shù)值。語法numeric fracpart(numeric number)參數(shù)number 需要計算其小數(shù)值的實數(shù)。備注返回實數(shù)舍入后的小

44、數(shù)值。等于 number - intpart(number)。 示例fracpart (2.49) = 0.49;fracpart (-8.93) = 0.07。 intpart說明返回實數(shù)舍入后的整數(shù)值。語法integer intpart(numeric number)參數(shù)number 需要進行取整處理的實數(shù)。備注返回實數(shù)舍入后的整數(shù)值。 示例intpart (8.9) = 8;intpart (-8.9) = -9。 ln說明返回一個數(shù)的自然對數(shù)。語法numeric ln(numeric number)參數(shù)number 所要取整的數(shù)值。備注返回一個數(shù)的自然對數(shù)。自然對數(shù)以常數(shù)項 e(2.7

45、1828182845904)為底。ln函數(shù)是exp函數(shù)的反函數(shù)。 示例ln (86) = 4.45437;ln (2.7182818) = 1;ln (exp (3) = 3;exp (ln (4) = 4。 log說明按所指定的底數(shù),返回一個數(shù)的對數(shù)。語法numeric log(numeric number,numeric base)參數(shù)number 為用于計算對數(shù)的正實數(shù)。base 為對數(shù)的底數(shù)。 備注按所指定的底數(shù),返回一個數(shù)的對數(shù)。示例log (10,10) = 1;log (8, 2) = 3;log (86, 2.7182818) = 4.454347。 mod說明返回兩數(shù)相除的余

46、數(shù)。語法integer mod(integer number,integer divisor)參數(shù)number 為被除數(shù)。divisor 為除數(shù)。如果divisor為零,函數(shù)mod返回無效值。 備注返回兩數(shù)相除的余數(shù)。結果的正負號與除數(shù)相同。函數(shù)mod可以借用函數(shù)intpart來表示:mod (n, d) = n - d*intpart(n/d)。示例mod (3, 2) = 1;mod (-3, 2) = 1;mod (3, -2) = -1;mod (-3, -2) = -1。 neg說明返回參數(shù)的負絕對值。語法numeric neg(numeric number)參數(shù)number 需要計

47、算其負絕對值的實數(shù)。備注返回參數(shù)的負絕對值,參數(shù)負絕對值是絕對值加上負號。示例neg (2) = -2;neg (-2) = -2;neg (0) = 0 ;neg (-5.3) = -5.3;neg (10.43) = -10.43。 odd說明返回對指定數(shù)值進行舍入后的奇數(shù)。語法integer odd(numeric number)參數(shù)number 要舍入求奇數(shù)的數(shù)值。備注返回對指定數(shù)值進行舍入后的奇數(shù)。如果number為非數(shù)值參數(shù),函數(shù)odd將返回無效值。不論正負號如何,數(shù)值都朝著遠離0的方向舍入。如果number恰好是奇數(shù),則不須進行任何舍入處理。示例odd (1.5) = 3;odd

48、 (3) = 3;odd (2) = 3;odd (-1) = -1;odd (-2) = -3。 pi說明返回數(shù)字3.1415926535898。語法numeric pi()參數(shù)無備注返回數(shù)字3.1415926535898,即數(shù)學常數(shù)pi,精確到小數(shù)點后 13 位。示例無power說明返回給定數(shù)字的乘冪。語法numeric power(numeric number,numeric power)參數(shù)number 底數(shù),可以為任意實數(shù)。power 指數(shù),number按該指數(shù)次冪乘方。備注返回給定數(shù)字的乘冪。可以用運算符代替函數(shù) power來表示對底數(shù)乘方的冪次,例如 52。示例power (5,

49、2) = 25;power (98.6,3.2) = 2401077;power (4,5/4) = 5.656854。 rand說明返回位于兩個指定數(shù)之間的一個隨機數(shù)。語法numeric rand(numeric bottom,numeric top)參數(shù)bottom 函數(shù)rand將返回的最小整數(shù)。top 函數(shù)rand將返回的最大整數(shù)。 備注返回位于兩個指定數(shù)之間的一個隨機數(shù)。每次計算都將返回一個新的數(shù)值。示例無round說明返回某個數(shù)字按指定位數(shù)舍入后的數(shù)字。語法numeric round(numeric number,integer num_digits)參數(shù)number 為需要向上舍入

50、的任意實數(shù)。num_digits 舍入后的數(shù)字的位數(shù)。備注返回某個數(shù)字按指定位數(shù)舍入后的數(shù)字。如果num_digits大于0,則舍入到指定的小數(shù)位。如果num_digits等于0,則舍入到最接近的整數(shù)。如果num_digits小于0,則在小數(shù)點左側進行舍入。 示例round (2.15, 1) = 2.2;round (2.149, 1) = 2.1;round (-1.475, 2) = -1.48;round (21.5, -1) = 20。 rounddown說明靠近零值,向下(絕對值減小的方向)舍入數(shù)字。語法numeric rounddown(numeric number,integer num_digits)參數(shù)number 為需要向上舍入的任意實數(shù)。num_digits 舍入后的數(shù)字的位數(shù)。備注靠近零值,向下(絕對值減小的

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論