{"id":1657,"date":"2012-07-16T20:50:22","date_gmt":"2012-07-16T11:50:22","guid":{"rendered":"http:\/\/h2s.roheisen.net\/blog\/?p=1657"},"modified":"2012-08-22T21:12:30","modified_gmt":"2012-08-22T12:12:30","slug":"%e5%a4%9a%e5%80%8d%e9%95%b7%e6%b5%ae%e5%8b%95%e5%b0%8f%e6%95%b0%e6%bc%94%e7%ae%97%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa-slimpnc4j","status":"publish","type":"post","link":"http:\/\/h2s.roheisen.net\/blog\/archives\/1657.html","title":{"rendered":"\u591a\u500d\u9577\u6d6e\u52d5\u5c0f\u6570\u6f14\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea SLiMPNC4J"},"content":{"rendered":"<p><script type=\"text\/javascript\" src=\"http:\/\/h2s.roheisen.net\/blog\/wp-content\/themes\/h2s\/js\/slimpnc_sample.js\" charset=\"UTF-8\"><\/script><br \/>\n<script type=\"text\/javascript\" src=\"http:\/\/h2s.roheisen.net\/blog\/wp-content\/themes\/h2s\/js\/slimpnc.js\" charset=\"UTF-8\"><\/script><\/p>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\u304a\u663c\u6642\u3067\u3059\u306d\u3002\u3053\u3093\u306b\u3061\u306f\u3001\u677e\u4e0b\u3067\u3059\u3002\u672c\u65e5\u306f\u7d9a\u3051\u3066\u62d9\u4f5c\u306e\u591a\u500d\u9577\u6d6e\u52d5\u5c0f\u6570\u6f14\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea\u3001<ruby><rb>SLiMPNC<\/rb><rp>(<\/rp><rt>\u30b9\u30ea\u30e0\u30d4\u30f3\u30af<\/rt><rp>)<\/rp><\/ruby>4J = the <strong>S<\/strong>imple <strong>Li<\/strong>brary of <strong>M<\/strong>ultiple-<strong>P<\/strong>recision <strong>N<\/strong>umber <strong>C<\/strong>alculation <strong>for<\/strong> <strong>J<\/strong>avascript \u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\t\t\u307e\u305a\u591a\u500d\u9577\u6f14\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u306f\u4f55\u304b\u3068\u7533\u3057\u307e\u3059\u3068\u3001\u901a\u5e38JavaScript\u3067\u4f7f\u7528\u3067\u304d\u308b\u6570\u5b57\u306f\u305b\u3044\u305c\u304415\u6841(=2<sup>52<\/sup>)\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u3092\u4f55\u3068\u304b\u3057\u3066\u4f55\u6841\u3067\u3082\u8a08\u7b97\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u3053\u3068\u3067\u3059\u3002\u300c\u4f55\u3068\u304b\u3057\u3066\u300d\u3068\u3044\u3046\u306e\u306f\u5177\u4f53\u7684\u306b\u3069\u3046\u3059\u308b\u306e\u304b\u3068\u8a00\u3044\u307e\u3059\u3068\u3001<ruby><rb>SLiMPNC<\/rb><rp>(<\/rp><rt>\u30b9\u30ea\u30e0\u30d4\u30f3\u30af<\/rt><rp>)<\/rp><\/ruby>4J\u3067\u306f\u8a08\u7b97\u3092\u7b46\u7b97\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u307e\u3067\u5206\u89e3\u3057\u30661\u6841\u305a\u3064\u51e6\u7406\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\t\tJavaScript\u306e\u4ed5\u69d8\u4e0a\u306e\u9650\u754c\u3067\u3042\u308b15\u6841\u3068\u8a00\u3048\u3070100\u5146\u304f\u3089\u3044\u3067\u3059\u306e\u3067\u3001\u901a\u5e38\u306f\u5168\u304f\u554f\u984c\u304c\u7121\u3044\u306e\u3067\u3059\u304c\u3001\u78ba\u7387\u8a08\u7b97\u3092\u884c\u3046\u5834\u5408\u306b\u306f0.9999999999999999999922<sup>30000<\/sup>\u306a\u3069\u3068\u3044\u3063\u305f\u8a08\u7b97\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u3001\u3053\u308c\u309215\u6841\u3067\u5207\u3063\u3066\u3057\u307e\u3046\u30681<sup>30000<\/sup>\u3068\u306a\u308b\u306e\u3067\u8a08\u7b97\u306e\u610f\u5473\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u3064\u307e\u308a<a href=\"http:\/\/h2s.roheisen.net\/blog\/archives\/1655.html\" class=\"liinternal\"><ruby><rb>CTraPS<\/rb><rp>(<\/rp><rt>\u30b7\u30fc\u30c8\u30e9\u30c3\u30d7\u30b9<\/rt><rp>)<\/rp><\/ruby><\/a>\u3092\u4f5c\u308b\u305f\u3081\u306e\u4e0b\u6e96\u5099\u3068\u3057\u3066\u3053\u308c\u3092\u4f5c\u3063\u305f\u308f\u3051\u3067\u3059\u3002<br \/>\n\t\t\u591a\u500d\u9577\u6f14\u7b97\u306f\u65e5\u5e38\u7684\u306b\u306f\u5fc5\u8981\u304c\u7121\u3044\u3068\u306f\u8a00\u3048\u3044\u304f\u3089\u304b\u306e\u9700\u8981\u304c\u3042\u308b\u306f\u305a\u3067\u3001\u5b9f\u969b\u306b\u691c\u7d22\u3057\u3066\u307f\u308b\u3068\u8272\u3005\u3068\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u51fa\u3066\u304f\u308b\u308f\u3051\u3067\u3059\u3002\u3057\u304b\u3057\u3069\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u8aac\u660e\u3092\u898b\u3066\u3082\u3068\u3063\u3064\u304d\u3065\u3089\u304f\u3001\u4f7f\u3044\u65b9\u3082\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5148\u3082\u826f\u304f\u5206\u304b\u3089\u306a\u3044\u306e\u3067\u7d50\u5c40\u81ea\u5206\u3067\u4f5c\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\t\t\u3064\u307e\u308a\u3001\u3053\u306e<ruby><rb>SLiMPNC<\/rb><rp>(<\/rp><rt>\u30b9\u30ea\u30e0\u30d4\u30f3\u30af<\/rt><rp>)<\/rp><\/ruby>4J\u306f<strong>\u6a5f\u80fd\u304c\u5358\u7d14\u3067\u5206\u304b\u308a\u3084\u3059\u3044\u30e9\u30a4\u30d6\u30e9\u30ea<\/strong>\u3068\u3044\u3046\u30b3\u30f3\u30bb\u30d7\u30c8\u3067\u4f5c\u3063\u3066\u3044\u307e\u3059\u3002\u9006\u306b\u8a00\u3048\u3070\u6a5f\u80fd\u304c\u5145\u5b9f\u3057\u3066\u3044\u308b\u3068\u306f\u8a00\u3048\u305a\u3001\u56db\u5247\u6f14\u7b97\u3068\u7d2f\u4e57(\u6307\u6570\u304c\u6574\u6570\u306e\u5834\u5408\u306e\u307f)\u307e\u3067\u3057\u304b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u8a08\u7b97\u901f\u5ea6\u3082\u305d\u308c\u307b\u3069\u8003\u616e\u3057\u3066\u304a\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u901f\u5ea6\u9762\u3067\u306f\u4ed6\u3068\u6bd4\u3079\u308b\u3060\u3051\u7121\u99c4\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\n\t\t\u3068\u3053\u308d\u3067\u5b9f\u306fPHP\u306a\u3089\u6a19\u6e96\u3067\u305d\u306e\u591a\u500d\u9577\u6f14\u7b97\u6a5f\u80fd\u304c\u3064\u3044\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001PHP\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u306e\u3067\u3001\u5165\u529b\u3055\u308c\u305f\u6570\u306b\u3088\u3063\u3066\u306f\u30b5\u30fc\u30d0\u30fc\u8ca0\u8377\u304c\u6050\u308d\u3057\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u4eca\u56de\u306f\u5b9f\u7528\u4e0a\u306e\u5b89\u5168\u6027\u3092\u8003\u616e\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u5074\u306ePC\u4e0a\u3067\u8a08\u7b97\u3092\u884c\u3046JavaScript\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002\u7d2f\u4e57\u306e\u57fa\u6570\u3068\u6307\u6570\u306e\u8a2d\u5b9a\u306b\u3088\u3063\u3066\u306f\u904e\u8ca0\u8377\u3067\u30d6\u30e9\u30a6\u30b6\u304c\u30d5\u30ea\u30fc\u30ba\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4e88\u3081\u3054\u5bb9\u8d66\u304f\u3060\u3055\u3044\u3002\n\t<\/p>\n<p>\n\t\t\u306a\u304a\u3001JavaScript\u3084\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u52c9\u5f37\u3092\u788c\u306b\u305b\u305a\u306b\u5fc5\u8981\u306a\u3068\u3053\u308d\u3060\u3051\u8abf\u3079\u306a\u304c\u3089\u4f5c\u3063\u3066\u307e\u3059\u306e\u3067\u3001\u69cb\u9020\u3084\u6587\u6cd5\u304c\u62d9\u3044\u306e\u306f\u305d\u306e\u3042\u305f\u308a\u304c\u539f\u56e0\u3067\u3059\u3002\n\t<\/p>\n<\/div>\n<div class=\"section\" id=\"sample\">\n<h4>\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8<\/h4>\n<form action=\"\" class=\"section first\">\n\t\t<input type=\"text\" size=\"20\" class=\"sizeM\" id=\"parameter0\" \/><br \/>\n\t\t<select id=\"operator\" name=\"operator\"><option value=\"0\">\uff0b<\/option><option value=\"1\">\uff0d<\/option><option value=\"2\">\u00d7<\/option><option value=\"3\">\u00f7<\/option><option value=\"4\">\uff3e<\/option><\/select><br \/>\n\t\t<input type=\"text\" size=\"20\" class=\"sizeM\" id=\"parameter1\" \/><br \/>\n\t\t<input type=\"button\" onclick=\"calculate();\" class=\"calcbutton\" value=\"=\" \/><br \/>\n\t\t<strong id=\"answer\"><\/strong><\/p>\n<table class=\"stdtable first\">\n<tr>\n<th>\u8a08\u7b97\u7cbe\u5ea6<\/th>\n<td class=\"name\"><input type=\"text\" class=\"sizeSS\" id=\"essentialfigure\" value=\"40\" \/>\u6841<\/td>\n<td>\n\t\t\t\t\t\u6d6e\u52d5\u5c0f\u6570\u4f55\u6841\u306e\u7cbe\u5ea6\u3067\u8a08\u7b97\u3059\u308b\u304b\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\t\t\t\t\t\u8a08\u7b97\u8ca0\u8377\u3092\u8003\u616e\u3059\u308b\u3068\u3001\u591a\u304f\u3066100\u6841\u7a0b\u5ea6\u3067\u3068\u3069\u3081\u308b\u306e\u304c\u7121\u96e3\u3067\u3059\u3002\n\t\t\t\t<\/td>\n<\/tr>\n<tr>\n<th>\u8868\u793a\u6709\u52b9\u6841\u6570<\/th>\n<td class=\"name\"><input type=\"text\" class=\"sizeSS\" id=\"displaydigit\" value=\"20\" \/>\u6841<\/td>\n<td>\n\t\t\t\t\t\u7d50\u679c\u8868\u793a\u3092\u6709\u52b9\u6570\u5b57\u4f55\u6841\u3067\u8868\u793a\u3059\u308b\u304b\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n\t\t\t\t<\/td>\n<\/tr>\n<tr>\n<th>\u6700\u7d42\u8868\u793a\u6841\u6570<\/th>\n<td class=\"name\"><input type=\"text\" class=\"sizeSS\" id=\"digitlimit\" value=\"25\" \/>\u6841<\/td>\n<td>\n\t\t\t\t\t\u8a08\u7b97\u7d50\u679c\u306b\u8868\u793a\u3059\u308b\u6570\u5b57\u306e\u6841(\u203b\u5c0f\u6570\u70b9\u542b\u3080\u6587\u5b57\u6570)\u306e\u9650\u754c\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\t\t\t\t\t\u3053\u306e\u6841\u3092\u8d85\u3048\u305f\u5834\u5408\u306b\u306fm\u00d710<sup>n<\/sup>\u5f62\u5f0f\u3067\u8868\u793a\u3057\u307e\u3059\u3002\n\t\t\t\t<\/td>\n<\/tr>\n<\/table><\/form>\n<\/div>\n<div class=\"section\" id=\"download\">\n<h4>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h4>\n<div class=\"section first\">\n<ul class=\"list first\">\n<li><ruby><rb>SLiMPNC<\/rb><rp>(<\/rp><rt>\u30b9\u30ea\u30e0\u30d4\u30f3\u30af<\/rt><rp>)<\/rp><\/ruby>4J\u672c\u4f53 : <a href=\"http:\/\/roheisen.net\/dl\/slimpnc.js\" onclick=\"window.open(this.href); return false;\" class=\"liexternal\">\u9291\u9244\u7db2\u5185dl\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/a><\/li>\n<li>\u3053\u306e\u30da\u30fc\u30b8\u306e\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8 : <a href=\"http:\/\/h2s.roheisen.net\/blog\/wp-content\/themes\/h2s\/js\/slimpnc_sample.js\" onclick=\"window.open(this.href); return false;\" class=\"liinternal\">h2s\u5185js\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/a><\/li>\n<\/ul><\/div>\n<\/div>\n<div class=\"section\" id=\"explanation\">\n<h4>\u4f7f\u3044\u65b9<\/h4>\n<div class=\"section first\">\n<h5>MPadd(parameter0:<strong class=\"attention\">String<\/strong>, parameter1:<strong class=\"attention\">String<\/strong>, essentialfigure:int or &#39;&#39;)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\t\u591a\u500d\u9577\u52a0\u7b97\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\tparameter0 + parameter1\u306e\u7d50\u679c\u3092<strong>String\u5f62\u5f0f\u3067<\/strong>\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\t\t\t\t<strong>parameter0\u53ca\u3073parameter1\u306fString\u5f62\u5f0f\u3067\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/strong><br \/>\n\t\t\t\tessentialfigure\u3067\u6709\u52b9\u6570\u5b57\u306e\u6841\u6570\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u6307\u5b9a\u304c\u7121\u3044\u5834\u5408\u306f\u5168\u6841\u3092\u8fd4\u3057\u307e\u3059\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : answer = MPadd(&#39;9999999999999999.9&#39;, &#39;888888888888888.888888&#39;);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>MPsub(parameter0:<strong class=\"attention\">String<\/strong>, parameter1:<strong class=\"attention\">String<\/strong>, essentialfigure:int or &#39;&#39;)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\t\u591a\u500d\u9577\u6e1b\u7b97\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\tparameter0 &#8211; parameter1\u306e\u7d50\u679c\u3092<strong>String\u5f62\u5f0f\u3067<\/strong>\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\t\t\t\t<strong>parameter0\u53ca\u3073parameter1\u306fString\u5f62\u5f0f\u3067\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/strong><br \/>\n\t\t\t\tessentialfigure\u3067\u6709\u52b9\u6570\u5b57\u306e\u6841\u6570\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u6307\u5b9a\u304c\u7121\u3044\u5834\u5408\u306f\u5168\u6841\u3092\u8fd4\u3057\u307e\u3059\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : answer = MPsub(&#39;9999999999999999.9&#39;, &#39;888888888888888.888888&#39;);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>MPmul(parameter0:<strong class=\"attention\">String<\/strong>, parameter1:<strong class=\"attention\">String<\/strong>, essentialfigure:int or &#39;&#39;)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\t\u591a\u500d\u9577\u4e57\u7b97\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\tparameter0 x parameter1\u306e\u7d50\u679c\u3092<strong>String\u5f62\u5f0f\u3067<\/strong>\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\t\t\t\t<strong>parameter0\u53ca\u3073parameter1\u306fString\u5f62\u5f0f\u3067\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/strong><br \/>\n\t\t\t\tessentialfigure\u3067\u6709\u52b9\u6570\u5b57\u306e\u6841\u6570\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u6307\u5b9a\u304c\u7121\u3044\u5834\u5408\u306f\u5168\u6841\u3092\u8fd4\u3057\u307e\u3059\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : answer = MPmul(&#39;9999999999999999.9&#39;, &#39;888888888888888.888888&#39;, 30);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>MPdiv(parameter0:<strong class=\"attention\">String<\/strong>, parameter1:<strong class=\"attention\">String<\/strong>, essentialfigure:int or &#39;&#39;)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\t\u591a\u500d\u9577\u9664\u7b97\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\tparameter0 x parameter1\u306e\u7d50\u679c\u3092<strong>String\u5f62\u5f0f\u3067<\/strong>\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\t\t\t\t<strong>parameter0\u53ca\u3073parameter1\u306fString\u5f62\u5f0f\u3067\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/strong><br \/>\n\t\t\t\tessentialfigure\u3067\u6709\u52b9\u6570\u5b57\u306e\u6841\u6570\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u6307\u5b9a\u304c\u7121\u3044\u5834\u5408\u306f15\u6841\u3067\u4e38\u3081\u3066\u8fd4\u3057\u307e\u3059\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : answer = MPdiv(&#39;9999999999999999.9&#39;, &#39;888888888888888.888888&#39;, 30);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>MPpow(parameter:<strong class=\"attention\">String<\/strong>, power:<strong class=\"attention\">String<\/strong>, essentialfigure:int or &#39;&#39;)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\t\u591a\u500d\u9577\u7d2f\u4e57\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\tparameter<sup>power<\/sup>\u306e\u7d50\u679c\u3092<strong>String\u5f62\u5f0f\u3067<\/strong>\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\t\t\t\t<strong>parameter\u53ca\u3073power\u306fString\u5f62\u5f0f\u3067\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/strong><br \/>\n\t\t\t\t\u6307\u6570\u306f\u6574\u6570\u306b\u3057\u304b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001\u5c0f\u6570\u3067\u5165\u529b\u3057\u3066\u3082\u81ea\u52d5\u7684\u306b\u5207\u308a\u6368\u3066\u307e\u3059\u3002<br \/>\n\t\t\t\tparameter<sup>100<\/sup>=(parameter<sup>10<\/sup>)<sup>10<\/sup>\u306a\u3069\u3068\u81ea\u52d5\u7684\u306b\u5206\u89e3\u3057\u3066\u8a08\u7b97\u3059\u308b\u305f\u3081\u3001parameter\u306e\u6841\u304c\u5c11\u306a\u3044\u5834\u5408\u306f\u3042\u308b\u7a0b\u5ea6\u9ad8\u901f\u306b\u52d5\u304d\u307e\u3059\u304c\u3001<strong>parameter\u304c\u6570\u4e07\u6841\u306b\u53ca\u3076\u5834\u5408\u306f\u305d\u306e\u6841\u306e\u51e6\u7406\u304c\u81a8\u5927\u306a\u305f\u3081\u904e\u8ca0\u8377\u306b\u9665\u308b<\/strong>\u3068\u3044\u3046\u96e3\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u4fdd\u6301\u30c7\u30fc\u30bf\u3092\u73fe\u72b6\u306e\u5168\u6841\u6587\u5b57\u5217\u304b\u3089\u6d6e\u52d5\u5c0f\u6570\u70b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u6539\u3081\u308b\u3053\u3068\u3067\u6539\u5584\u3067\u304d\u305d\u3046\u3067\u3059\u304c\u3001\u5168\u90e8\u306e\u95a2\u6570\u3092\u66f8\u304d\u76f4\u3059\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u4eca\u306e\u3068\u3053\u308d\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\n\t\t\t\tessentialfigure\u3067\u6709\u52b9\u6570\u5b57\u306e\u6841\u6570\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u6307\u5b9a\u304c\u7121\u3044\u5834\u5408\u306f15\u6841\u3067\u4e38\u3081\u3066\u8fd4\u3057\u307e\u3059\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : answer = MPpow(&#39;0.999999999999999999999999&#39;, &#39;300000&#39;, 30);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>MPesrnd(parameter:<strong class=\"attention\">String<\/strong>, essentialfigure:<strong class=\"attention\">int<\/strong>)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\t\u591a\u500d\u9577\u6709\u52b9\u6570\u5b57\u4e38\u3081\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\tparameter\u3092\u6709\u52b9\u6570\u5b57essentialfigure\u6841\u3067\u4e38\u3081\u3066<strong>String\u5f62\u5f0f\u3067<\/strong>\u8fd4\u3057\u307e\u3059\u3002\u4e38\u3081\u6f14\u7b97\u306f\u56db\u6368\u4e94\u5165\u3067\u3059\u3002<br \/>\n\t\t\t\t\u4e38\u3081\u5c02\u7528\u306e\u95a2\u6570\u306a\u306e\u3067<strong>essentialfigure\u306e\u5165\u529b\u306f\u5fc5\u9808<\/strong>\u3067\u3059\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : answer = MPpow(&#39;0.999999999999999999999999&#39;, &#39;300000&#39;, 30);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>MPabscomp_simple(parameter0:<strong class=\"attention\">String<\/strong>, parameter1:<strong class=\"attention\">String<\/strong>)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\t\u591a\u500d\u9577\u6b63\u6574\u6570\u6587\u5b57\u5217\u306e\u7d76\u5bfe\u5024\u3092\u6bd4\u8f03\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\tparameter0\u3068parameter1\u3092\u6bd4\u8f03\u3057\u3066\u3001paramter0\u304c\u5927\u304d\u3051\u308c\u30700\u3092\u3001parameter1\u304c\u5927\u304d\u3051\u308c\u30701\u3092<strong>int\u5f62\u5f0f\u3067<\/strong>\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\t\t\t\t\u591a\u500d\u9577\u9664\u7b97\u306e\u88dc\u52a9\u95a2\u6570\u3067\u3059\u306e\u3067\u3001\u8a08\u7b97\u8ca0\u8377\u3092\u8efd\u6e1b\u3059\u308b\u305f\u3081\u5c0f\u6570\u3084\u8ca0\u306e\u6570\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : answer = MPabscomp_simple(&#39;32248&#39;, &#39;32837&#39;);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>getInt(searchid:String)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\tHTML\u30da\u30fc\u30b8\u306eDOM\u30c4\u30ea\u30fc\u304b\u3089int\u5f62\u5f0f\u3067\u5185\u5bb9\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\tid=searchid\u3068\u306a\u308b\u8981\u7d20\u306e<strong>value<\/strong>\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002input\u30bf\u30b0\u306a\u3069\u304b\u3089\u53d6\u5f97\u3059\u308b\u306e\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\t\t\t\t\u8fd4\u308a\u5024\u304cint\u5f62\u5f0f\u306e\u305f\u3081\u3001<strong>15\u6841\u3092\u8d85\u3048\u308b\u6570\u306b\u306f\u5bfe\u5fdc\u3067\u304d\u307e\u305b\u3093<\/strong>\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : parameter[0] = getInt(&#39;form_input0&#39;);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>getIntString(searchid:String)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\tHTML\u30da\u30fc\u30b8\u306eDOM\u30c4\u30ea\u30fc\u304b\u3089String\u5f62\u5f0f\u3067\u5185\u5bb9\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\tid=searchid\u3068\u306a\u308b\u8981\u7d20\u306e<strong>value<\/strong>\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002input\u30bf\u30b0\u306a\u3069\u304b\u3089\u53d6\u5f97\u3059\u308b\u306e\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\t\t\t\tString\u5f62\u5f0f\u306e\u305f\u3081\u3001\u53d6\u5f97\u3067\u304d\u308b\u6841\u6570\u306e\u5236\u9650\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\t\t\t\t\u8fd4\u308a\u5024\u304c<strong>String\u306e\u5185\u5bb9\u304c\u5c0f\u6570\u3067\u3042\u308b\u5834\u5408\u3001\u81ea\u52d5\u7684\u306b\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u524a\u3063\u3066\u6574\u6570\u5316\u3057\u307e\u3059\u3002<\/strong>\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : parameter[0] = getIntString(&#39;form_input0&#39;);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>getFloat(searchid:String)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\tHTML\u30da\u30fc\u30b8\u306eDOM\u30c4\u30ea\u30fc\u304b\u3089float\u5f62\u5f0f\u3067\u5185\u5bb9\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\tid=searchid\u3068\u306a\u308b\u8981\u7d20\u306e<strong>value<\/strong>\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002input\u30bf\u30b0\u306a\u3069\u304b\u3089\u53d6\u5f97\u3059\u308b\u306e\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\t\t\t\t\u8fd4\u308a\u5024\u304cfloat\u5f62\u5f0f\u306e\u305f\u3081\u3001<strong>15\u6841\u3092\u8d85\u3048\u308b\u6570\u306b\u306f\u5bfe\u5fdc\u3067\u304d\u307e\u305b\u3093<\/strong>\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : parameter[0] = getFloat(&#39;form_input0&#39;);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>getFloatString(searchid:String)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\tHTML\u30da\u30fc\u30b8\u306eDOM\u30c4\u30ea\u30fc\u304b\u3089String\u5f62\u5f0f\u3067\u5185\u5bb9\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\tid=searchid\u3068\u306a\u308b\u8981\u7d20\u306e<strong>value<\/strong>\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002input\u30bf\u30b0\u306a\u3069\u304b\u3089\u53d6\u5f97\u3059\u308b\u306e\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\t\t\t\t\u8fd4\u308a\u5024\u304cString\u5f62\u5f0f\u306e\u305f\u3081\u3001\u53d6\u5f97\u3067\u304d\u308b\u6841\u6570\u306e\u5236\u9650\u306f\u3042\u308a\u307e\u305b\u3093\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : parameter[0] = getFloatString(&#39;form_input0&#39;);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>correctNumberString(text:String)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\ttext\u306e\u4e2d\u8eab\u3092\u6570\u5b57\u3068\u3057\u3066\u6574\u7406\u6574\u9813\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\t\u6570\u5b57\u3001\u8ca0\u53f7\u3001\u5c0f\u6570\u70b9\u4ee5\u5916\u5168\u3066\u306e\u6587\u5b57\u3092\u524a\u9664\u3057\u3001\u534a\u89d2\u306b\u7d71\u4e00\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u5c0f\u6570\u306e\u672b\u5c3e\u306b\u3064\u3044\u305f0\u3092\u524a\u9664\u3057\u307e\u3059\u3002<br \/>\n\t\t\t\t\u8fd4\u308a\u5024\u306fString\u5f62\u5f0f\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\t\t\t\t<strong>\u4e3b\u306b\u30e6\u30fc\u30b6\u30fc\u304c\u5165\u529b\u3057\u3046\u308b\u5168\u89d2\u30fb\u534a\u89d2\u6df7\u3058\u308a\u306e\u6587\u5b57\u5217\u3092\u6b63\u898f\u5316\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/strong>\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u5909\u6570\u3092\u6f14\u7b97\u95a2\u6570\u306b\u5165\u308c\u308b\u524d\u306b\u4e00\u65e6\u3053\u306e\u95a2\u6570\u306b\u7a81\u3063\u8fbc\u3093\u3067\u6574\u7406\u3057\u3066\u304a\u304f\u3068\u6bd4\u8f03\u7684\u5b89\u5168\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002\u4e0a\u8a18getInt\uff5egetFloatString\u306f\u5168\u3066\u81ea\u52d5\u7684\u306bcorrectNumberString\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u3001\u518d\u5ea6\u3053\u306e\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\t\t\t\t\u5148\u982d\u4ee5\u5916\u306e\u8ca0\u53f7\u30842\u3064\u76ee\u4ee5\u964d\u306e\u5c0f\u6570\u70b9\u3068\u3044\u3063\u305f\u30a4\u30ec\u30ae\u30e5\u30e9\u30fc\u306b\u306f\u672a\u5bfe\u5fdc\u3067\u3059\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : parameter = correctNumberString(&#39;-389.26580248\uff14\uff16\uff1425000&#39;);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>MPparseint(parameter:<strong class=\"attention\">String<\/strong>)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\tString\u578b\u6570\u5b57parameter\u3092\u6574\u6570\u5316\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\t\u5358\u7d14\u306b\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3092\u5207\u308a\u6368\u3066\u3066\u6574\u6570\u5316\u3057\u305f\u3082\u306e\u3092String\u578b\u3067\u8fd4\u3057\u307e\u3059\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : parameter = MPparseint(&#39;-344.73&#39;);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>MPshortstyle(parameter:<strong class=\"attention\">String<\/strong>, essentialfigure:int or &#39;&#39;, xstyle:String or &#39;&#39;, powstyle_start:String or &#39;&#39;, powstyle_end:String or &#39;&#39;)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\tString\u578b\u6570\u5b57parameter\u3092m\u00d710<sup>n<\/sup>\u30b9\u30bf\u30a4\u30eb\u306b\u6210\u578b\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\t\u521d\u671f\u5024\u3067\u306fm\u00d710&lt;sup&gt;n&lt;\/sup&gt;\u306b\u306a\u308a\u307e\u3059\u304c\u3001&#39;\u00d7&#39;\u3092xstyle\u3001&#39;&lt;sup&gt;&#39;\u3092powstyle_start\u3001&#39;&lt;\/sup&gt;&#39;\u3092powstyle_end\u3067\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n\t\t\t\t\u8fd4\u308a\u5024\u306fString\u5f62\u5f0f\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\t\t\t\tessentialfigure\u3067\u6709\u52b9\u6841\u6570\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u306f15\u6841\u3067\u4e38\u3081\u3089\u308c\u307e\u3059\u3002\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : parameter = MPshortstyle(&#39;-0.0000007776338002739722&#39;);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"section\">\n<h5>fit_digit(parameter:<strong class=\"attention\">String<\/strong>, displaydigit:<strong class=\"attention\">int<\/strong>, digitlimit:<strong class=\"attention\">int<\/strong>)<\/h5>\n<div class=\"section first\">\n<p class=\"first\">\n\t\t\t\tString\u578b\u6570\u5b57parameter\u3092\u6841\u6570\u306b\u5fdc\u3058\u3066m\u00d710<sup>n<\/sup>\u30b9\u30bf\u30a4\u30eb\u306b\u6210\u578b\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<br \/>\n\t\t\t\t\u6709\u52b9\u6841\u6570\u3092displaydigit\u3001\u6709\u52b9\u6841\u524d\u5f8c\u306e0\u3084\u5c0f\u6570\u70b9\u3092\u5408\u308f\u305b\u305f\u6587\u5b57\u6570\u306e\u9650\u754c\u3092displaydigit\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\t\t\t\t\u51e6\u7406\u3068\u3057\u3066\u306f\u6700\u521d\u306bdisplaydigit\u306e\u6841\u6570\u3067\u4e38\u3081\u3001\u305d\u306e\u7d50\u679cString\u578b\u6570\u5b57\u306e\u6587\u5b57\u6570\u304cdigitlimit\u3092\u8d85\u3048\u308b\u5834\u5408\u306bm\u00d710<sup>n<\/sup>\u30b9\u30bf\u30a4\u30eb\u306b\u6210\u578b\u3057\u307e\u3059\u3002<br \/>\n\t\t\t\t<strong>\u8981\u3059\u308b\u306b\u30da\u30fc\u30b8\u4e0a\u306e\u9650\u3089\u308c\u305f\u30b9\u30da\u30fc\u30b9\u306b\u53ce\u307e\u308b\u3088\u3046\u306b\u6570\u5b57\u3092\u6210\u578b\u3057\u307e\u3059\u3002<\/strong>\n\t\t\t<\/p>\n<p>\n\t\t\t\t\u4f7f\u7528\u4f8b : result = fit_digit(&#39;34588370000000000000000000000000000&#39;);\n\t\t\t<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u304a\u663c\u6642\u3067\u3059\u306d\u3002\u3053\u3093\u306b\u3061\u306f\u3001\u677e\u4e0b\u3067\u3059\u3002\u672c\u65e5\u306f\u7d9a\u3051\u3066\u62d9\u4f5c\u306e\u591a\u500d\u9577\u6d6e\u52d5\u5c0f\u6570\u6f14\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea\u3001SLiMPNC(\u30b9\u30ea\u30e0\u30d4\u30f3\u30af)4J = the Simple Library of Multiple-Precision Number  &hellip; <a href=\"http:\/\/h2s.roheisen.net\/blog\/archives\/1657.html\" class=\"liinternal\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[65],"tags":[14,13],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/h2s.roheisen.net\/blog\/wp-json\/wp\/v2\/posts\/1657"}],"collection":[{"href":"http:\/\/h2s.roheisen.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/h2s.roheisen.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/h2s.roheisen.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/h2s.roheisen.net\/blog\/wp-json\/wp\/v2\/comments?post=1657"}],"version-history":[{"count":0,"href":"http:\/\/h2s.roheisen.net\/blog\/wp-json\/wp\/v2\/posts\/1657\/revisions"}],"wp:attachment":[{"href":"http:\/\/h2s.roheisen.net\/blog\/wp-json\/wp\/v2\/media?parent=1657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/h2s.roheisen.net\/blog\/wp-json\/wp\/v2\/categories?post=1657"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/h2s.roheisen.net\/blog\/wp-json\/wp\/v2\/tags?post=1657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}