Last post Mar 24, 2009 01:17 PM by BmoreFinest
Apr 27, 2007 09:19 PM|joellevi|LINK
Hi, Please help,
How can I convert the Tax in the following code which is Double to a two decimal place figure
Please hel I have tryied everything I knew, am also new to VB.
Apr 27, 2007 09:48 PM|StrongTypes|LINK
You can use
Apr 27, 2007 09:53 PM|joellevi|LINK
Thanks for replying Ryan,
See I am learning VB and tryied the Math.Round but it created errors must be to with my syntax. Can you please tell me how extactly to write it?
Apr 27, 2007 09:57 PM|StrongTypes|LINK
Apr 27, 2007 10:03 PM|joellevi|LINK
Is this how to change it ?
Function GetUploadCartUrl(ByVal TaxAmount
As Math.Round(TaxAmount, 2),
The error is this:
Line 55: ''' <param name="ShippingAmount"></param>
Line 56: ''' <returns></returns>
Line 57: Public Shared Function GetUploadCartUrl(ByVal TaxAmount As Math.Round(TaxAmount, 2), ByVal Subtotal As Double, ByVal ShippingAmount As Double) As String
Line 58: Dim cart As ShoppingCart = ShoppingCartManager.GetCart()
Line 59: 'cart.Items.Load(ShoppingCartManager.GetCartItems());
Apr 27, 2007 10:14 PM|StrongTypes|LINK
Don't do the Math.Round in the method signature. Do it in the body of the method.
Apr 27, 2007 10:20 PM|joellevi|LINK
Can you please guide me how to put it?
Apr 27, 2007 10:34 PM|joellevi|LINK
How do I write in the Body of the method?
Mar 24, 2009 01:17 PM|BmoreFinest|LINK
Math.Round( value, 2)