{"id":2783,"date":"2026-11-10T08:04:02","date_gmt":"2026-11-10T08:04:02","guid":{"rendered":"https:\/\/wiki.designcorner.co.ke\/?dc_term=operator-precedence"},"modified":"2026-11-10T08:04:02","modified_gmt":"2026-11-10T08:04:02","slug":"operator-precedence","status":"publish","type":"dc_term","link":"https:\/\/wiki.designcorner.co.ke\/?dc_term=operator-precedence","title":{"rendered":"Operator Precedence"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What it is<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Multiplication and division are done before addition and subtraction, unless brackets change the order. Programming languages and spreadsheets follow similar rules.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why it matters for your business<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ignoring the rules gives wrong totals in invoices and price calculators.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-world example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In a spreadsheet, 2 + 3 * 4 gives 14 and not 20.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design Corner tip<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use brackets in formulas so the intended order is clear to anyone who reads them.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>The rule that decides which calculation is done first in an expression.<\/p>\n","protected":false},"featured_media":0,"template":"","dc_letter":[20],"dc_topic":[34],"class_list":["post-2783","dc_term","type-dc_term","status-publish","hentry","dc_letter-o","dc_topic-software-and-development"],"_links":{"self":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/2783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term"}],"about":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/types\/dc_term"}],"version-history":[{"count":0,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/2783\/revisions"}],"wp:attachment":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2783"}],"wp:term":[{"taxonomy":"dc_letter","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_letter&post=2783"},{"taxonomy":"dc_topic","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_topic&post=2783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}