<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shikaku</author_name>
  <author_url>https://blog.hatena.ne.jp/shikaku/</author_url>
  <blog_title>shikaku's blog</blog_title>
  <blog_url>https://blog.systemjp.net/</blog_url>
  <categories>
    <anon>javascript</anon>
  </categories>
  <description>とくにAPIは用意されていないようです。なので四捨五入したい桁の上の桁までをいったん整数にしてから四捨五入のAPIを使って、その後小数に戻すという技を使います。 var i = 3.14159265 * 100; // =&gt; 314.159265 i = Math.round(i); // =&gt; 314 i / 100; // =&gt; 3.14参考 http://mudaimemo.blogspot.com/2008/10/javascriptx.html</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F20090619%2Fp6&quot; title=&quot;小数点以下X桁を四捨五入する - shikaku&amp;#39;s blog&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>2009-06-19 00:00:04</published>
  <title>小数点以下X桁を四捨五入する</title>
  <type>rich</type>
  <url>https://blog.systemjp.net/entry/20090619/p6</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
