aspÖеļ¸¸öÈ¡Õûº¯Êý
aspÖеļ¸¸öÈ¡Õûº¯ÊýÊÇ£ºfix(),int(),round();
Int(number)¡¢Fix(number)º¯Êý·µ»ØÊý×ÖµÄÕûÊý²¿·Ö¡£number ²ÎÊý¿ÉÒÔÊÇÈÎÒâÓÐЧµÄÊýÖµ±í´ïʽ¡£Èç¹û number ²ÎÊý°üº¬ Null£¬Ôò·µ»Ø Null¡£
Àý£º
response.write int(2.14) '2
response.write fix(2.14) '2
response.write int(2.54) '2
response.write int(2.54) '2
Int ºÍ Fix º¯Êý¶¼É¾³ý number ²ÎÊýµÄСÊý²¿·Ö²¢·µ»ØÒÔÕûÊý±íʾµÄ½á¹û¡£Int ºÍ Fix º¯ÊýµÄÇø±ðÔÚÓÚÈç¹û number ²ÎÊýΪ¸ºÊýʱ£¬Int º¯Êý·µ»ØСÓÚ»òµÈÓÚ number µÄµÚÒ»¸ö¸ºÕûÊý£¬¶ø Fix º¯Êý·µ»Ø´óÓÚ»òµÈÓÚ number ²ÎÊýµÄµÚÒ»¸ö¸ºÕûÊý¡£ÀýÈ磬Int ½« -8.4 ת»»Îª -9£¬¶ø Fix º¯Êý½« -8.4 ת»»Îª -8¡£
round(Expression[, numdecimalplaces])·µ»Ø°´Ö¸¶¨Î»Êý½øÐÐËÄÉáÎåÈëµÄÊýÖµ¡£ExpressionÊDZØÑ¡Ïî¡£ÊýÖµ±í´ïʽ ±»ËÄÉáÎåÈë¡£NumdecimalplacesÊÇ¿ÉÑ¡Ïî¡£Êý×Ö±íÃ÷СÊýµãÓÒ±ßÓжàÉÙλ½øÐÐËÄÉáÎåÈë¡£Èç¹ûÊ¡ÂÔ£¬Ôò Round º¯Êý·µ»ØÕûÊý¡£
Àý£º
response.write round(3.14) '3
response.write round(3.55) '4
response.write round(3.1415,3) ' 3.142
Ïà¹ØÎĵµ£º
Éý»ªÌṩÖÕÉíÃâ·ÑASP+access PHP+mysqlÐéÄâÖ÷»ú
Ò»£ºÉý»ªÍøÂç¿Æ¼¼ÓÐÏÞ¹«Ë¾,ÓëÉý»ªÍ¬ÔÚÕ¾³¤ÖÕÉíÃâ·Ñ¿Õ¼ä·ö³Ö¼Æ»®.
1¡¢×ð¾´µÄÓû§ÄúºÃ,Ò²ÐíÄú»¹ÔÚΪÿÄêÒ»½»µÄ¿Õ¼ä·ÑÓ÷¢³î,Ò²ÐíÄúÏë»ñµÃÒ»¸ö¸üÓÅÖʵĿռäÈ´²»ÏëͶÈëÌ«¶à,´ÓÏÖÔÚÆð ÕâЩÎÊÌ⽫ÓÈжø½â→Éý»ªÍøÂç←ÓëÉý»ªÍ¬ÔÚÕ¾³¤·ö³Ö¼Æ»®È«ÃæÆô¶¯¡£
2¡¢Ã»ÓÐ×¢²á¹«Ë¾ ......
·½·¨Ò»¡¢¾¡Á¿Ê¹Óø´ÔÓµÄSQLÀ´´úÌæ¼òµ¥µÄÒ»¶Ñ SQL.
ͬÑùµÄÊÂÎñ£¬Ò»¸ö¸´ÔÓµÄSQLÍê³ÉµÄЧÂʸßÓÚÒ»¶Ñ¼òµ¥SQLÍê³ÉµÄЧÂÊ¡£Óжà¸ö²éѯʱ£¬ÒªÉÆÓÚʹÓÃJOIN¡£
oRs=oConn.Execute("SELECT * from Books")
while not oRs.Eof
strSQL = "SELECT * from Authors WHERE AuthorID="&oRs("AuthorID") oRs2=oConn.Execute(strSQ ......
Ëæ ×ÅÍøÕ¾·ÃÎÊÁ¿µÄ¼Ó´ó£¬Ã¿´Î´ÓÊý¾Ý¿â¶ÁÈ¡¶¼ÊÇÒÔЧÂÊ×÷Ϊ´ú¼ÛµÄ£¬ºÜ¶àÓÃACCESS×÷Êý¾Ý¿âµÄ¸ü»áÉîÓÐÌå»á£¬¾²Ì¬Ò³¼ÓÔÚËÑË÷ʱ£¬Ò²»á±»ÓÅÏÈ¿¼ÂÇ¡£»¥ÁªÍøÉÏÁ÷ ÐеÄ×ö·¨Êǽ«Êý¾ÝÔ´´úÂëдÈëÊý¾Ý¿âÔÙ´ÓÊý¾Ý¿â¶ÁÈ¡Éú³É¾²Ì¬Ã棬ÕâÑùÎÞÐμä¾Í¼Ó´óÁËÊý¾Ý¿â¡£½«ÏÖÓеÄASPÒ³Ö±½ÓÉú³É¾²Ì¬Ò³£¬½«»á½ÚÊ¡ºÜ¶à¡£
ÏÂÃæµÄÀý×ÓÊǽ«¡¢index.asp?i ......
¡¡¡¡ÓÃASPʵÏÖËÑË÷²¢·ÖÒ³ÊÇÎÒ¼û´ó¶àÊý³ÌÐòÔ±ºÍ´ó¶àÊýÍøÕ¾³öÏÖÁ˲»ÄÜÕý³£·ÖÒ³µÄÎÊÌ⣬ËÑË÷³öÀ´µÄ½á¹ûµã»÷ÏÂÒ»Ò³Êý¾ÝÓÖÖض¨ÏòΪ³õʼµÄ½á¹û¡£ÊÇʲôÔÒòµ¹ÖÂÕâ¸öÎÊÌâÄØ£¿
¡¡¡¡Õâ¸öÎÊÌâÒ²ÊÇÔÚÎÒÔÚУÕýÔÚѧϰASPµÄʱºòÁ·Ï°ÊµÀýÖÐÓöµ½µÄÎÊÌ⣬³öÏÖÕâ¸öÎÊÌâºó£¬·´¸´µÄµ÷ÊÔ·´¸´µÄ¼ì²é´úÂ룬¿´À´¿´È¥´úÂëûÓв»±¨´íÒ²ÎÞÎó¡£× ......
¾¹ý±¾È˽«ASPÔËÐÐËÙ¶ÈÄÚ´æÕ¼ÓôóС·Å´óµ½200MµÄ²âÊÔ
¹ØÓÚ¶¨Òå±äÁ¿£º
1¡¢¶¨Òå±äÁ¿£¬¾¡Á¿²»Òª¶¨ÒåÈ«¾Ö±äÁ¿£¬Ë½ÓбäÁ¿ÔÚÔËÐÐËÙ¶ÈÒÔ¼°¿Õ¼äÕ¼ÓÃÉÏÃæ±È¹«¹²±äÁ¿Ëٶȿ죬ÒÔ¼°¸³ÖµÉÏÃæËÙ¶ÈÎÊÌ⣨ÏÂÃæ½éÉÜ£©
2¡¢±äÁ¿¸³Öµ£º
¸ø±äÁ¿¸³Öµ¾¡Á¿Ò»´Î¸³Í꣬±ÈÈ磺
Dim str
str="1"
str ......