{"id":21521,"date":"2020-08-22T04:26:22","date_gmt":"2020-08-22T11:26:22","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=21521"},"modified":"2023-12-01T03:58:40","modified_gmt":"2023-12-01T11:58:40","slug":"python-round-two-decimal-places","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/","title":{"rendered":"Python: How to Round to Two Decimal Places"},"content":{"rendered":"\n<p>How do you round a value to two decimal places in Python? That\u2019s an excellent question. Luckily for you, Python offers a few functions that let you round numbers.<br><\/p>\n\n\n\n<p>Rounding numbers to two decimal places is common. Money only uses two decimal places; you do not want to process a monetary value with a third decimal place. Weights are often represented with two decimal places; extra values are for additional precision that is not necessary in most cases.<br><\/p>\n\n\n\n<p>In this guide, we talk about how to round a number to two decimal places in Python. We walk through two code snippets to help you learn how to round numbers in your own code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Rounding Numbers Using round()<\/h2>\n\n\n\n<p>We have to write a program that calculates how much money each friend in a group of friends has to pay for dinner. Start by asking the user to insert how much a meal cost and how many friends were present:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>meal_cost = input(&quot;How much did your meal cost? &quot;)\nfriends = input(&quot;How many friends were with you? &quot;)<\/pre><\/div>\n\n\n\n<p>Next, let\u2019s calculate how much each friend has to pay for dinner. We assume that each friend is to pay an equal amount, no matter what they ordered:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cost_per_friend = float(meal_cost) \/ float(friends)<\/pre><\/div>\n\n\n\n<p>We have converted both \u201cmeal_cost\u201d and \u201cfriends\u201d to a <a href=\"https:\/\/careerkarma.com\/blog\/python-float\/\">floating point number<\/a>. This is because the <code>input()<\/code> method returns a string. You cannot perform a mathematical calculation on a string value using Python&#8217;s math operators.<br><\/p>\n\n\n\n<p>Now, let\u2019s round this value to two decimal places. We use the <code>round()<\/code> method. The <a href=\"https:\/\/careerkarma.com\/blog\/python-round\/\">round()<\/a> method. lets you round a value to the nearest integer or the nearest decimal place.<br><\/p>\n\n\n\n<p>We also print the amount each friend has to contribute toward dinner to the console:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>rounded_value = round(cost_per_friend, 2)\n\nprint(&quot;Each friend must pay $&quot; + str(rounded_value) + &quot; for dinner.&quot;)<\/pre><\/div>\n\n\n\n<p>We\u2019ve used the built-in <code>round()<\/code> function to round the value of \u201ccost_per_friend\u201d to two decimal places. Next, we\u2019ve used <a href=\"https:\/\/careerkarma.com\/blog\/python-concatenate-strings\/\">string concatenation<\/a> to create a message that we print to the console. This message informs us how much each friend must pay for their dinner.<br><\/p>\n\n\n\n<p>Run our code to see our function working:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>How much did your meal cost? 64.92\nHow many friends were with you? 6\nEach friend must pay $10.82 for dinner.<\/pre><\/div>\n\n\n\n<p>If we had divided 64.92 by six without rounding the number, we would have seen a number with a lot of decimals. Our code calculates that each friend must pay $10.82 toward their dinner by rounding the <a href=\"https:\/\/careerkarma.com\/blog\/python-math-operators\/\">result of our division sum<\/a> to two decimal places.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Rounding Numbers Using String Formatting<\/h2>\n\n\n\n<p>In our last example, we\u2019ve shown the rounded number in a string. There is another way that we can round a number if its only purpose is to be shown in a string. This method is only supported in Python 3.x.<br><\/p>\n\n\n\n<p>We revise our code to round the value that each friend must pay for dinner using the <code>.format()<\/code> <a href=\"https:\/\/careerkarma.com\/blog\/python-f-string\/\">string formatting syntax<\/a>.<br><\/p>\n\n\n\n<p>We start by calculating how much each friend must pay:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>meal_cost = input(&quot;How much did your meal cost? &quot;)\nfriends = input(&quot;How many friends were with you? &quot;)\n\ncost_per_friend = float(meal_cost) \/ float(friends)<\/pre><\/div>\n\n\n\n<p>Next, write a <code>print()<\/code> statement that informs us of how much each friend must pay for dinner. We use a <code>.format()<\/code> statement with the <code>print()<\/code> statement. This lets us format values inside our string:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(&quot;Each friend must pay ${:0.2f} for dinner.&quot;.format(cost_per_friend))<\/pre><\/div>\n\n\n\n<p>Our <code>.format()<\/code> statement uses the following syntax to create a decimal representation of a number that is rounded to two places:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>{:0.2f}<\/pre><\/div>\n\n\n\n<p>The colon (:) tells our code we want to format a value. The zero is used to make Python aware that we\u2019re dealing with a number that may be padded with zeros. The .2 instructs Python to round our number to two decimal places. The \u201cf\u201d shows our value as a number.<br><\/p>\n\n\n\n<p>Let\u2019s run our code and see what happens:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>How much did your meal cost? 64.92\nHow many friends were with you? 6\nEach friend must pay $10.82 for dinner.<\/pre><\/div>\n\n\n\n<p>Our code successfully calculates how much each friend must pay for dinner. The result is the same as our first code snippet. There are two digits after the decimal which shows that our numeric data has been rounded to two decimal points.<br><\/p>\n\n\n\n<p>This method is more efficient than our first code snippet because all we want to do is print a value to the console. In this code, we\u2019ve not used a <code>round()<\/code> statement.<br><\/p>\n\n\n\n<p>If we intended to use our rounded value further in our code, the string formatting syntax would be impractical.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The most common approaches to rounding a value to two decimal places are:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>To use the round() method<\/li><li>To use string formatting<\/li><\/ul>\n\n\n\n<p>The first method is good for any case where you need to round a number. The second method only works if you want to round a value for use in a string and if you are using Python 3.x.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to round values to two decimal places in your code like a <a href=\"https:\/\/careerkarma.com\/blog\/python-vs-java\/\">Python pro<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"How do you round a value to two decimal places in Python? That\u2019s an excellent question. Luckily for you, Python offers a few functions that let you round numbers. Rounding numbers to two decimal places is common. Money only uses two decimal places; you do not want to process a monetary value with a third&hellip;","protected":false},"author":240,"featured_media":21522,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-21521","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Python","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python: How to Round to Two Decimal Places | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn how to round a value to two decimal places using the round() method and string formatting syntax.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python: How to Round to Two Decimal Places\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn how to round a value to two decimal places using the round() method and string formatting syntax.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-22T11:26:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:58:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/kari-shea-3hlQ2ty9kUY-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"687\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python: How to Round to Two Decimal Places\",\"datePublished\":\"2020-08-22T11:26:22+00:00\",\"dateModified\":\"2023-12-01T11:58:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/\"},\"wordCount\":738,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/kari-shea-3hlQ2ty9kUY-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/\",\"name\":\"Python: How to Round to Two Decimal Places | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/kari-shea-3hlQ2ty9kUY-unsplash.jpg\",\"datePublished\":\"2020-08-22T11:26:22+00:00\",\"dateModified\":\"2023-12-01T11:58:40+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn how to round a value to two decimal places using the round() method and string formatting syntax.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/kari-shea-3hlQ2ty9kUY-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/kari-shea-3hlQ2ty9kUY-unsplash.jpg\",\"width\":1020,\"height\":687},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/careerkarma.com\/blog\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python: How to Round to Two Decimal Places\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python: How to Round to Two Decimal Places | Career Karma","description":"On Career Karma, learn how to round a value to two decimal places using the round() method and string formatting syntax.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/","og_locale":"en_US","og_type":"article","og_title":"Python: How to Round to Two Decimal Places","og_description":"On Career Karma, learn how to round a value to two decimal places using the round() method and string formatting syntax.","og_url":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-08-22T11:26:22+00:00","article_modified_time":"2023-12-01T11:58:40+00:00","og_image":[{"width":1020,"height":687,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/kari-shea-3hlQ2ty9kUY-unsplash.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python: How to Round to Two Decimal Places","datePublished":"2020-08-22T11:26:22+00:00","dateModified":"2023-12-01T11:58:40+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/"},"wordCount":738,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/kari-shea-3hlQ2ty9kUY-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/","url":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/","name":"Python: How to Round to Two Decimal Places | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/kari-shea-3hlQ2ty9kUY-unsplash.jpg","datePublished":"2020-08-22T11:26:22+00:00","dateModified":"2023-12-01T11:58:40+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn how to round a value to two decimal places using the round() method and string formatting syntax.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/kari-shea-3hlQ2ty9kUY-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/kari-shea-3hlQ2ty9kUY-unsplash.jpg","width":1020,"height":687},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-round-two-decimal-places\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/careerkarma.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"Python: How to Round to Two Decimal Places"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=21521"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/21521\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/21522"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=21521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=21521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=21521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}