you can get the correct code for returning the grand total from the Dreamweaver bindings panel
Go to the bindings panel, exapand the eCart object and select the grand total binding and add it to the page, this will give you the correct syntax to use.