0
0

More than 1 year has passed since last update.

plunkerでieee754

Last updated at Posted at 2021-11-09

概要

plunkerでieee754やってみた。
dataview使わないで、浮動小数点(binary32)に変換、その逆も。

使用したライブラリー

サンプルコード

var out = document.getElementById("out");
var src = document.getElementById("src"); 
var out2 = document.getElementById("out2"); 
function run0() {
  var val = src.value;
  out.value = getPrecision(val);
}
function run1() {
  var val = out.value;
  out2.value = getDecimal(val);
}

成果物

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0