<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gothedistance</author_name>
  <author_url>https://blog.hatena.ne.jp/gothedistance/</author_url>
  <blog_title>Life is Really Short, Have Your Life!!</blog_title>
  <blog_url>https://aroundthedistance.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>消費税の実装ってむずかしい（ベタ打ちもあるヨ） - aikeの日記にインスパイアされて。 端数の丸め処理 卸業界では小売価格に対する何%で商品を卸しますよ、ということを通例としてやる。この｢何%｣に当たる率を掛け率という。この掛け率が50とか60とかならシンプルなんですが、57とかになると生きるのが辛くなってくる。 例えば、定価780円に対して掛け率が57%だと、780 * 0.57 = 444.6 という計算になり、小数点以下の数が生まれてしまう。こいつを切り上げ/切り捨て/四捨五入するのは、結構会社によって違う。 消費税の計算単位 消費税の計算というのは、「何に対して消費税を加算するのか」…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroundthedistance.hatenadiary.jp%2Fentry%2F2012%2F07%2F19%2F114705&quot; title=&quot;消費税の計算をマジメに考える - Life is Really Short, Have Your Life!!&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-07-19 11:47:05</published>
  <title>消費税の計算をマジメに考える</title>
  <type>rich</type>
  <url>https://aroundthedistance.hatenadiary.jp/entry/2012/07/19/114705</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
