I have an issue with regards to multiplication in apex. My apex class is called in lightning but the issue seems to be on a formula inside the class. Here is the formula and here are the parameters.
Note: pageSize is Integer and pageNumber is decimal.
Integer offset = ((Integer)pageNumber - 1) * pageSize;
Anyone knows about this issue? It seems that the issue is in the multiplication we get an "internal salesforce.com error" when multiplication operating occurs.
by the way we are using this for pagination of a table. here's the link: http://sfdcmonkey.com/2017/01/26/display-record-with-pager-buttons-lightning-component/