VBScript အဝိုင်း လုပ်ဆောင်ချက်
❮ VBScript အကိုးအကားကို အပြီးသတ်ပါ။
Round function သည် နံပါတ်တစ်ခုကို ဝိုင်းထားသည်။
အထားအသို
Round(expression[,numdecimalplaces])
Parameter | Description |
---|---|
expression | Required. The numeric expression to be rounded |
numdecimalplaces | Optional. Specifies how many places to the right of the decimal are included in the rounding. Default is 0 |
ဥပမာများ
ဥပမာ ၁
<%
response.write(Round(24.13278) & "<br />")
response.write(Round(24.75122))
%>
အထက်ဖော်ပြပါ ကုဒ်၏ အထွက်သည်-
24
25
ဥပမာ ၂
ဂဏန်းတစ်လုံးကို ဒဿမ 2 နဲ့ ထိန်းနည်း၊
<%
response.write(Round(24.13278,2))
%>
အထက်ဖော်ပြပါ ကုဒ်၏ အထွက်သည်-
24.13
❮ VBScript အကိုးအကားကို အပြီးသတ်ပါ။