JPH01217622A - 浮動小数点表現の変換方式 - Google Patents

浮動小数点表現の変換方式

Info

Publication number
JPH01217622A
JPH01217622A JP63045112A JP4511288A JPH01217622A JP H01217622 A JPH01217622 A JP H01217622A JP 63045112 A JP63045112 A JP 63045112A JP 4511288 A JP4511288 A JP 4511288A JP H01217622 A JPH01217622 A JP H01217622A
Authority
JP
Japan
Prior art keywords
representation
floating point
expression
converted
floating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63045112A
Other languages
English (en)
Inventor
Yoshiko Mushiaki
虫明 佳子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63045112A priority Critical patent/JPH01217622A/ja
Publication of JPH01217622A publication Critical patent/JPH01217622A/ja
Pending legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はコンピュータで扱う数値の内部表現に関する
ものである。
〔従来の技術〕
浮動小数点の表現方法はハードウェアごとに異なってい
るため異なるハードウェア間で数値の転送を行う場合、
転送後の数値が転送前の数値とは違うものとして解釈さ
れる場合がある。
このため、浮動小数点の表現方法が異なったハードウェ
ア間でデータを転送する場合は、その各々のハードウェ
アに準じてプログラマが表現の変換のプログラムを作成
していた。
〔発明が解決しようとする課題〕
従来の浮動小数点表現の変換方式は浮動小数点の表現方
法がハードウェアによって異なっているために、プログ
ラマが各ハードウェアに合わせていちいちプログラムを
作成してそれを実行する必要があシ、このため時間や手
間がかかり、かつそのプログラムには汎用性がないなど
の課題があった。
この発明は上記のような課題を解消するためになされた
もので、変換したい値を限定することなくかつ、短時間
で表現を変換するような浮動小数点表現の変換方式を得
ることを目的とする。
〔課題を解決するための手段〕
この発明に係る浮動小数点表現の変換方式は変換したい
数値と、その浮動小数点表現のフォーマットと、変換後
の表現のフォーマットを入力することによって、変換後
のデータを求めるようにしたものである。
〔作用〕
この発明における浮動小数点表現の変換方式は異なる八
−ドウエア間でデータを転送する場合等の浮動小数点表
現の変換を要する際その変換を容易に行うことができる
。
〔実施例〕
以下、この発明の一実施例を図について説明する。第1
図において、変換したい値(16進値)と、その表現の
指数部の基数と桁数を読みこみ(ステップ1)、次いで
変換後の表現の指数部の基数と桁数を読みこむ(ステッ
プ2)。変換前の値は10進値では何に相当するのかを
計算する(ステップ3)。求めた値から変換後の表現の
基数をもとに指数部を計算し、続いて仮数部を求める(
ステップ4)。変換後のデータを16進で出力する。
第2図は具体的な浮動小数点の表現を用いてこの発明の
変換方式の流れを示した説明図である。
図において、変換したい値とそのデータ(財)を10進
表現のに変換し、変換後のフォーマットのに基づき表現
変換を行う〇 〔発明の効果〕 以上のようにこの発明によれは、変換したい浮動小数点
の表現をその表現フォーマットとともに読みこんで求め
る表現フォーマットに変換するこトニよシ、異なるハー
ドウェア間でデータ転送を行う際、そのハードウェアご
とに変換プログラムを作成しなくてもよいという効果が
ある。
【図面の簡単な説明】
第1図はこの発明の詳細な説明するための流れ図、第2
図はこの発明に係る浮動小数点表現変換方式の一実施例
を説明する説明図である。

Claims (1)

    【特許請求の範囲】
  1.  コンピュータでの実数の内部表現である浮動小数点表
    現を各ハードウェアに即した表現に変換することを特徴
    とする浮動小数点表現の変換方式。
JP63045112A 1988-02-26 1988-02-26 浮動小数点表現の変換方式 Pending JPH01217622A (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63045112A JPH01217622A (ja) 1988-02-26 1988-02-26 浮動小数点表現の変換方式

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63045112A JPH01217622A (ja) 1988-02-26 1988-02-26 浮動小数点表現の変換方式

Publications (1)

Publication Number Publication Date
JPH01217622A true JPH01217622A (ja) 1989-08-31

Family

ID=12710182

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63045112A Pending JPH01217622A (ja) 1988-02-26 1988-02-26 浮動小数点表現の変換方式

Country Status (1)

Country Link
JP (1) JPH01217622A (ja)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5687106A (en) * 1995-03-31 1997-11-11 International Business Machines Corporation Implementation of binary floating point using hexadecimal floating point unit
US11360769B1 (en) 2021-02-26 2022-06-14 International Business Machines Corporation Decimal scale and convert and split to hexadecimal floating point instruction
US11663004B2 (en) 2021-02-26 2023-05-30 International Business Machines Corporation Vector convert hexadecimal floating point to scaled decimal instruction

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5687106A (en) * 1995-03-31 1997-11-11 International Business Machines Corporation Implementation of binary floating point using hexadecimal floating point unit
US11360769B1 (en) 2021-02-26 2022-06-14 International Business Machines Corporation Decimal scale and convert and split to hexadecimal floating point instruction
US11663004B2 (en) 2021-02-26 2023-05-30 International Business Machines Corporation Vector convert hexadecimal floating point to scaled decimal instruction

Similar Documents

Publication Publication Date Title
JPS6132437Y2 (ja)
JPS6124729B2 (ja)
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
JPH0789314B2 (ja) 浮動小数点条件符号生成方式
JP2507980B2 (ja) デ―タコンバ―ジョンプログラム自動生成方式
JPS6275838A (ja) 可変精度数値デ−タ演算装置
JPH0234037A (ja) 数値データ変換方式
JPH11296510A (ja) データ変換装置
JPH04178836A (ja) 書式編集処理方式
JPH0272407A (ja) ラダー・プログラム変換装置
SU1550544A1 (ru) Устройство дл воспроизведени дробно-линейных функций
JPH0744383A (ja) オブジェクト処理方法
JPS61216038A (ja) プログラム変換時のコピ−・ライブラリ自動生成方式
JPH0250730A (ja) 共通機械語による言語変換方式
JPH11346155A (ja) データ形式変換装置
JPH01240961A (ja) Dma転送方式
JPH01209542A (ja) 論理検証装置
JPS62107349A (ja) フアイル変換方式
JPS60637U (ja) デ−タ変換装置
JPS5924342A (ja) 演算装置
JPS60220468A (ja) ベクトル演算制御方式
JPS6133538A (ja) 演算装置
JPH04248624A (ja) プログラム変換処理装置
JPH01276222A (ja) データ変換装置
JPH022423A (ja) コボルプログラムソース変換方式