How to do Math Calculations in Wapka

Hi, in this tutorial I will tell you how you can do math calculations with wapka :math: tag. You will find this tutorial very helpful if you are willing to do calculations without any javascript.. :)

With wapka :math: tag you can add, subtract, divide, multiplication very easily without need of any external languages like javascript.. So no need to use javascript means that al users via Phone or PC will see your math calculations.. Lets do some basics in this tutorial.. I will also add the calculator tutorial with some advance options you ever seen on wapka..

First, you should understand the :math: tag in wapka.. math tag starts with :math: and ends on :/math: so your calculations should be between :math: and :/math: tags.. Outside of these tags math calculations will not work..

If you want that your answer should b e in decimal points, than you can start your math tag as :math,DEC: (You can change DEC with the number of decimal points you want in result for example: 2 or 3, even 5).. Now if we want 2 decimal then our code should look like this

Now instead of CALCULATIONS you can do following calculation or as you like.. :)
  1. Subtraction: You can subtract two numbers.. Like

    For this purpose you can use - sign.
  2. Multiplication: You can multiply two or more digits to get the answer.. See example below


    For this purpose you can use * sign.
  3. Addition: You ca add two or more numbers..

    For this purpose you can use + sign.
  4. Division: You can divide two numbers, as I did in this example


    For this purpose you can use / sign.
    Mow, in above example you see that if we divide 4 bt 3 the answer will be in decimal, so the code should be used like this to also show the decimals..

    Yiu can see that we have set answer decimal points to 2, you can set 3 or more as your likeness..
  5. Brackets: You can also use brackets ( and ) in your equations... For example.

    In above example we have used brackets, so first it will calculate 2+4 and then will dividee it with the 2.. So What should be the answer??? Yes it should be in decimal points because we have set it to 2.. So the answer will be 3..
All above are the functions of math that can be used inside the :math: and :/math: tags. You can write anything inside both tags to calculate. You just need to revise the mathematical procedures for +, -, /, and *..
You can even do or in other words use all the operators in one go.. For example..

I hope that this tutorial will be helpful for you.. Please comment below if you liked this tutorial and join us on facebook to be in touch and get updates whenever new tutorial is added to wapkatutor's awesome tutorials list..

Join our facebook page
Create your own free wapsite in minutes
Request New Tutorials


  1. Very useful tutorial.But I have to put everything manually off course in admin mode.what about user,is there any?

  2. Nice qestion :) With wapka everything is possible.. I will add advance calculator tutorial ASAP

  3. what abt that

  4. And u told everything is posible in wapka...can I allow my users to create pages like fb

  5. unknown@ I have added yur request in my todo list.. please wait.. You can't but you can use profile as one page

  6. User can edit there profile and also you can allow then to add status

  7. Can u plz. Write a tutorial on how to make a autouploader [which uploads via url and pw] plz sir

  8. Can u plz. Write a tutorial on how to make a autouploader [which uploads via url and pw] plz sir

  9. Sorry, thats not possible.. its only possible for admins

  10. Hello sir, Plz tell me details about Wapka "latest updates" and "more updates" ...?
    Tell me If "Latest Update" or "Update news" of wapka a special code or text or a forum ...? Plz when you reply this comment mail me at ""
    My site

  11. shall we use other functions like sine cos log etc

  12. Sorry no but...
    You can do many things like
    For pie you can do 22/7 thats pie value :)
    For n power 2 you can use 2*2
    For percentage you can use 1000*10/100
    and many more to share.. All depends on your mathematics..

  13. please can you help me with the html/xml codes

  14. salam ahmed hy bro i need to ur help plz give me code profile like facebook or give me this profile in this site


You are always welcome to add comments and suggestion about the tutoiral. Please note that, we do not allow misuse and if you have any questions write briefly so that our moderators can understand your message and reply as early as possible.