{"id":3077,"date":"2026-11-10T08:04:12","date_gmt":"2026-11-10T08:04:12","guid":{"rendered":"https:\/\/wiki.designcorner.co.ke\/?dc_term=scalar"},"modified":"2026-11-10T08:04:12","modified_gmt":"2026-11-10T08:04:12","slug":"scalar","status":"publish","type":"dc_term","link":"https:\/\/wiki.designcorner.co.ke\/?dc_term=scalar","title":{"rendered":"Scalar"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What it is<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In programming and maths a scalar holds one item of data, like a price or a count. Arrays and tables, by contrast, hold many values together.<\/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\">Knowing the difference helps in reading code and spreadsheets and in understanding why some calculations apply to one value and others to whole lists.<\/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, one cell holding 1,500 is a scalar, while the column of all prices is an array.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design Corner tip<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When asking a developer to change a setting, say whether it is a single value or a list.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>A single value, such as one number, as opposed to a list or collection of values.<\/p>\n","protected":false},"featured_media":0,"template":"","dc_letter":[24],"dc_topic":[34],"class_list":["post-3077","dc_term","type-dc_term","status-publish","hentry","dc_letter-s","dc_topic-software-and-development"],"_links":{"self":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=\/wp\/v2\/dc_term\/3077","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\/3077\/revisions"}],"wp:attachment":[{"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3077"}],"wp:term":[{"taxonomy":"dc_letter","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_letter&post=3077"},{"taxonomy":"dc_topic","embeddable":true,"href":"https:\/\/wiki.designcorner.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fdc_topic&post=3077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}