欢迎来到天天文库
浏览记录
ID:41394176
大小:56.83 KB
页数:10页
时间:2019-08-24
《Vb常用内部函数》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Vb常用内部函数Onlyafteralongperiodofhardwork,andlongimmersedinthetask,canbeaccomplished・一HegelVbUSESinternalfunctionsClickthefunctiongrouptoview:ThemathematicalfunctionofthetypeconversionfunctionisthefunctionofthefunctionoftimeandtimeThestringfunctionfileoperatestheforminputandoutputfunctio
2、nClickthefollowingheadlinetoreturnhere:*typeconversionfunctionInt(x):themaximumintegerthatisnotgreaterthanthexvalueoftheindependentvariableFix(x):removethedecimalportionofafloating-pointnumberandkeepitsintegerportionHex$(x):convertadecimalnumbertohexadecimalnumberOct$(x):convertadecim
3、alnumbertoanoctalnumberAsc(x$):returnstheASCIIcharacterofthefirstcharacterinthestringx$CI1R$(x):convertthevalueofxtothecorrespondingASCIIcharacterStr$(x):convertthevalueofxtoastringCint(x):roundingthedecimalpartofxtoanintegerCcur(x):convertthevalueofxintoacurrencytypevalue,withamaximu
4、mof4digitsinthedecimalportionandautomaticallyroundingupthedecimalCDbl(x):convertthexvaluetodoubleprecisionCLng(x):convertthedecimalportionofxtoalongintegerCSng(x):convertthexvaluetoasingleprecisionnumberCvar(x):convertthexvaluetothevarianttypevalueVarPtr(var):thepointertothevariableva
5、r*mathematicalfunctionSineofx:returnsthesineoftheindependentvariablexCosineofx:cosineoftheindependentvariablexTangent(x):returnthetangentoftheindependentvariablexAtn(x):returnthevalueoftheinversevariablexAbs(x):returnstheabsolutevalueoftheindependentvariablex6,Sgn(x):returnthesymbolof
6、theindependentvariablex,whichiswhenxisnegative,returnT;Whenxis0,return0;Whenxispositive,return1Sqr(x):thesquarerootoftheindependentvariablexmustbegreaterthanorequalto0Exp(x):returnsthevalueofetothex,whichisetothex*dateandtimefunctions1,Day(Now):returnthecurrentdateWeekDay(Now):returni
7、ngtothepresentweekMonth(Now):returntothepresentMonthYear(Now):returnthecurrentYearHour(Now):returnhours(0~23)Minute(Now):return(0'59)Second(Now):returnseconds(0~59)*therandomnumberfunctionRnd[(x)]:generatesasingleprecisionrandomnumberbetween0and1Randmize[(x)]:functionallythesame,butbe
8、tter*
此文档下载收益归作者所有