JPH0778210A - Device and method for data processing - Google Patents

Device and method for data processing

Info

Publication number
JPH0778210A
JPH0778210A JP5161021A JP16102193A JPH0778210A JP H0778210 A JPH0778210 A JP H0778210A JP 5161021 A JP5161021 A JP 5161021A JP 16102193 A JP16102193 A JP 16102193A JP H0778210 A JPH0778210 A JP H0778210A
Authority
JP
Japan
Prior art keywords
data
stored
cell
table data
processing
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
JP5161021A
Other languages
Japanese (ja)
Inventor
Masashi Kuroshima
真砂司 黒島
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP5161021A priority Critical patent/JPH0778210A/en
Publication of JPH0778210A publication Critical patent/JPH0778210A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To effectively use a table calculation edit device by discriminating whether or not the effective number of digits of detected numeric value data exceeds the prescribed effective number of digits, and making a digit part exceeding the prescribed effective number of digits of numeric value data discriminated that whose effective number of digits exceeds the prescribed effective number of digits coincide with it by applying rounding processing. CONSTITUTION:It is discriminated whether or not the effective number of digits of the numeric data stored in table data to be converted is larger than that of the numeric data generated after conversion i.e., it is discriminated whether or not it is larger by comparing with the effective number of digits that can be handled in a table calculation application to process the table data after conversion. When the former is larger than the latter, the table data converted by rounding off the numeric value of digit larger than the effective number of digits of the numeric data generated after conversion is generated in PMEM3. Conversion table data generated in the PMEM 3 is written on an HD 15 and an FD 16, then, conversion processing is completed. In this way, the table calculation edit device can be effectively used without performing wasteful processing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、数値データあるいは式
データを入力し、記憶し、表示し、かつ入力された数値
データあるいは式データを用いて演算処理を行ない、ま
たは他のフォーマットの表計算データのコンバートを行
なう表計算装置などの数値データ処理装置に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to inputting, storing and displaying numerical data or formula data, and performing arithmetic processing using the input numerical data or formula data, or spreadsheets in other formats. The present invention relates to a numerical data processing device such as a spreadsheet device for converting data.

【0002】[0002]

【従来の技術】従来、この種の装置においては、装置に
取り込もうとする数値データの有効桁数が、装置自体で
処理可能な有効桁数よりも大きい場合、この数値データ
を取り込まなかった。または、装置自体で扱える有効桁
数外の数値を無条件に切り捨てて、有効桁数内の数値の
みを取り込んでいた。
2. Description of the Related Art Conventionally, in this type of apparatus, when the number of significant digits of the numerical data to be fetched into the apparatus is larger than the number of significant digits which can be processed by the apparatus itself, this numerical data is not fetched. Alternatively, a value outside the significant digits that can be handled by the device itself is unconditionally truncated, and only a value within the significant digits is fetched.

【0003】また、従来、この種の装置においては他の
フォーマットの表計算データをコンバートして入力しよ
うとする時、また表計算データを他のフォーマットにコ
ンバートして出力しようとする時には、式データと式の
計算結果データを共にコンバートの対象としていた。
Conventionally, in this type of apparatus, when the spreadsheet data of another format is converted and input, and when the spreadsheet data is converted to another format and output, the formula data Both the calculation result data of the formula and the formula were targeted for conversion.

【0004】また、従来、この種の装置においては、表
のシートだけがあって、どのセルの中にもデータのない
表データ(例えば図16のような2行2列の表データ)
をコンバートまたは複写する場合には、やはり表のシー
トだけがあってどのセルの中にもデータのない表データ
を作成していた。
Conventionally, in this type of apparatus, table data having only a table sheet and no data in any cell (for example, table data of 2 rows and 2 columns as shown in FIG. 16).
When converting or copying, the table data was created with only the table sheet and no data in any cell.

【0005】[0005]

【発明が解決しようとしている課題】しかしながら、上
記従来の装置のうち、本表計算装置で扱える有効桁数よ
りも有効桁数の大きい数値が入力されると、その数値デ
ータを受けつけないので、ユーザがいちいち数値データ
を入力し直さなければならないという問題点があった。
また本表計算装置で扱える有効桁数外の数値を無条件に
切り捨てて、有効桁数内の数値のみ取り込んでいたの
で、ユーザが希望しない値に変換されてしまって、ユー
ザが希望する数値データを入力し直さなければならない
という問題点があった。
However, of the above-mentioned conventional apparatuses, if a numerical value having a larger number of significant digits than the number of significant digits that can be handled by the present spreadsheet apparatus is input, the numerical value data cannot be accepted. However, there was a problem that the numerical data had to be input again.
In addition, since the values outside the number of significant digits that can be handled by this spreadsheet were unconditionally rounded down and only the values within the number of significant digits were taken in, it was converted to a value that the user did not want, and the numerical data desired by the user There was a problem that you had to re-enter.

【0006】また、上述した装置においては、他の表計
算装置や他の表計算アプリケーションで作成した表計算
データをコンバートして入力すると、同じ式でも他の表
計算装置や他の表計算アプリケーションとは実行内容が
違っている為に、表計算データコンバート後に式の再計
算が実行されると、式の計算結果が違ってしまい、ユー
ザがいちいち式の計算結果を検査して、もし式の計算結
果が違っているならば希望の結果になるように入力し直
さなければならないという問題点があった。また、表計
算データをコンバートして出力し、他の表計算編集装置
や他の表計算アプリケーションで表示や編集を行なう場
合も同様に、ユーザがいちいち式の計算結果を検査し
て、式の計算結果が違っていると希望の結果になるよう
に入力し直さなければならないという問題点があった。
Further, in the above-mentioned device, when spreadsheet data created by another spreadsheet device or another spreadsheet application is converted and input, the same formula is used for another spreadsheet device or another spreadsheet application. Since the execution contents are different, when the formula recalculation is executed after the spreadsheet data conversion, the calculation result of the formula will be different, and the user will check the calculation result of each formula and calculate the formula. If the result is different, there was a problem that you had to re-input to obtain the desired result. Similarly, when the spreadsheet data is converted and output, and is displayed or edited by another spreadsheet editing device or other spreadsheet application, the user inspects the calculation result of each equation and calculates the equation in the same manner. There was a problem in that if the results were different, it was necessary to re-enter to obtain the desired result.

【0007】例えば図9のように、ある表計算アプリケ
ーション上では、2行2列でセル1Aに式『weekd
ay(”1993/06/13”)』とその式の計算結
果『0』が記憶されている表計算データがあるとする。
この時、関数weekdayはパラメータで与えられた
日の曜日を、日曜日を0としてリターンするものとす
る。この表計算データをコンバートして、他の表計算ア
プリケーション上で再計算して表示すると、この表計算
アプリケーションでは関数weekdayはパラメータ
で与えられた日の曜日を、月曜日を0としてリターンす
るものであるので図13のようにセル1Aに6が表示さ
れる、というような問題があった。
For example, as shown in FIG. 9, on a certain spreadsheet application, the formula "weekd" is added to the cell 1A in 2 rows and 2 columns.
It is assumed that there is spreadsheet data in which ay (“1993/06/13”) ”and the calculation result“ 0 ”of the formula are stored.
At this time, the function weekday returns the day of the week given by the parameter with Sunday being 0. When this spreadsheet data is converted, recalculated and displayed on another spreadsheet application, the function weekday in this spreadsheet application returns the day of the week given by the parameter as 0 for Monday. Therefore, there is a problem that 6 is displayed in the cell 1A as shown in FIG.

【0008】また、上述した装置においては、どのセル
の中にもデータの登録されていないような表データにつ
いても、複写またはコンバートするので、無駄な処理時
間を要するという問題があった。
Further, in the above-mentioned apparatus, since table data whose data is not registered in any cell is copied or converted, there is a problem that a wasteful processing time is required.

【0009】[0009]

【課題を解決するための手段】上記課題を解決するため
に、本発明では、データ処理装置に、所定の有効桁数の
数値データを演算する演算手段と、表データを読み込む
読み込み手段と、該読み込み手段により読み込まれた表
データ中より数値データを検出する検出手段と、該検出
手段により検出された数値データの有効桁数が前記所定
の有効桁数より大きいかを判別する判別手段と、該判別
手段により大きいと判別された数値データの前記所定の
有効桁数を越える桁部分を丸め処理して、該数値データ
の有効桁数を前記所定の有効桁数と一致させる変換手段
とを具える。
In order to solve the above-mentioned problems, in the present invention, a data processing device is provided with a calculating means for calculating numerical data having a predetermined number of significant digits, a reading means for reading table data, Detecting means for detecting numerical data from the table data read by the reading means; judging means for judging whether the number of significant digits of the numerical data detected by the detecting means is larger than the predetermined number of significant digits; The discriminating means includes a converting means for rounding the digit portion of the numerical data determined to be larger than the predetermined effective digit number so as to match the effective digit number of the numerical data with the predetermined effective digit number. .

【0010】また、本発明の他の態様によれば、データ
処理装置に、計算式を入力する入力手段と、該入力手段
で入力された計算式の計算を行なう計算手段と、前記入
力手段で入力された計算式と、該計算式の前記計算手段
による計算結果とを1ファイルとして記憶する記憶手段
と、前記記憶手段に記憶されたファイルを複写またはコ
ンバートするファイル処理手段とを具え、該ファイル処
理手段が、ファイル中の式を処理対象から除外して複写
またはコンバートを行なうことを特徴とする。
According to another aspect of the present invention, the data processing device includes an input means for inputting a calculation formula, a calculation means for calculating the calculation formula input by the input means, and the input means. The file includes a storage unit for storing the input calculation formula and a calculation result of the calculation unit by the calculation unit as one file, and a file processing unit for copying or converting the file stored in the storage unit. The processing means excludes the expression in the file from the processing target and performs copying or conversion.

【0011】また、本発明の他の態様によれば、データ
処理装置に、行列形式の表の各セルに対応するデータを
記憶するセルデータ記憶手段と、該セルデータ記憶手段
に記憶されたデータに基づいて表データを作成する表デ
ータ作成手段と、該表データ作成手段で作成された表デ
ータを記憶する表データ記憶手段と、前記表データ記憶
手段に記憶された表データを複写またはコンバートする
表データ処理手段と、前記表データ記憶手段に記憶され
た表データのいずれかのセルに対応して、前記セルデー
タ記憶手段にデータが記憶されているかを判別する判別
手段と、該判別手段により、いずれのセルに対してもセ
ルデータ記憶手段にデータが記憶されていないと判別さ
れたときに、前記表データ処理手段による処理を禁止す
る制御手段とを具える。
According to another aspect of the present invention, in the data processing device, cell data storage means for storing data corresponding to each cell of the matrix format table, and data stored in the cell data storage means. Table data creating means for creating table data based on the table data, table data storing means for storing the table data created by the table data creating means, and copying or converting the table data stored in the table data storing means Table data processing means, determination means for determining whether or not data is stored in the cell data storage means corresponding to any cell of the table data stored in the table data storage means, and the determination means A control means for prohibiting the processing by the table data processing means when it is determined that no data is stored in the cell data storage means for any cell. That.

【0012】また、本発明の他の態様によれば、所定の
有効桁数の数値データを演算するデータ処理装置におい
て、表データを読み込み、読み込まれた前記表データ中
より数値データを検出し、検出された前記数値データの
有効桁数が前記所定の有効桁数より大きいかを判別し、
該判別により大きいと判別された数値データの前記所定
の有効桁数を越える桁部分を丸め処理して、該数値デー
タの有効桁数を前記所定の有効桁数と一致させることを
特徴とする。
According to another aspect of the present invention, in a data processing device for calculating numerical data having a predetermined number of significant digits, table data is read and numerical data is detected from the read table data. Determining whether the number of significant digits of the detected numerical data is greater than the predetermined number of significant digits,
It is characterized in that a digit portion exceeding the predetermined effective digit number of the numerical data determined to be larger than the predetermined digit number is rounded so that the effective digit number of the numerical data coincides with the predetermined effective digit number.

【0013】また、本発明の他の態様によれば、データ
処理方法において、計算式を入力し、入力された前記計
算式の計算を実行し、入力された前記計算式と、該計算
式の前記計算の結果とを1ファイルとしてメモリに記憶
し、前記メモリに記憶されたファイルを複写またはコン
バートする際に、ファイル中の式を処理対象から除外し
て複写またはコンバートを行なうことを特徴とする。
According to another aspect of the present invention, in the data processing method, a calculation formula is input, the calculation of the input calculation formula is executed, and the input calculation formula and the calculation formula The result of the calculation is stored in a memory as one file, and when the file stored in the memory is copied or converted, the expression in the file is excluded from the processing target and the copying or conversion is performed. .

【0014】また、本発明の他の態様によれば、データ
処理方法において、セルデータメモリに記憶された、行
列形式の表の各セルに対応するデータに基づいて、表デ
ータを作成し、作成された表データを表データメモリに
記憶し、前記表データメモリに記憶された表データの複
写またはコンバートを指示し、該指示を受けて、前記表
データメモリに記憶された表データのいずれかのセルに
対応して、前記セルデータメモリにデータが記憶されて
いるかを判別し、該判別により、いずれのセルに対して
もセルデータメモリにデータが記憶されていないと判別
されたときに、指示された複写またはコンバートを禁止
することを特徴とする。
According to another aspect of the present invention, in the data processing method, table data is created based on the data stored in the cell data memory and corresponding to each cell of the matrix table. Stored table data in the table data memory, instructing copying or conversion of the table data stored in the table data memory, and receiving the instruction, any of the table data stored in the table data memory It is determined whether or not data is stored in the cell data memory corresponding to the cell, and when it is determined that the data is not stored in the cell data memory for any of the cells, an instruction is issued. It is characterized in that prohibited copying or conversion is prohibited.

【0015】[0015]

【作用】かかる本発明の構成において、読み込み手段に
より読み込まれた表データ中より検出手段が数値データ
を検出すると、判別手段により、検出された数値データ
の有効桁数が前記所定の有効桁数より大きいかを判別
し、大きいと判別された数値データの前記所定の有効桁
数を越える桁部分を変換手段により丸め処理して、該数
値データの有効桁数を前記所定の有効桁数と一致させ
る。
In the structure of the present invention, when the detecting means detects the numerical data from the table data read by the reading means, the discriminating means determines that the effective digit number of the detected numerical data is greater than the predetermined effective digit number. It is determined whether or not it is large, and the digit portion exceeding the predetermined effective digit number of the numerical data determined to be large is rounded by the converting means to make the effective digit number of the numerical data coincide with the predetermined effective digit number. .

【0016】また、本発明の他の構成において、入力手
段で入力された計算式と、該計算式の前記計算手段によ
る計算結果とを1ファイルとして記憶手段に記憶し、フ
ァイル処理手段が前記記憶手段に記憶されたファイルを
複写またはコンバートする際に、ファイル中の式を処理
対象から除外して複写またはコンバートを行なう。
In another configuration of the present invention, the calculation formula input by the input unit and the calculation result of the calculation formula by the calculation unit are stored as one file in the storage unit, and the file processing unit stores the storage. When copying or converting the file stored in the means, the expression in the file is excluded from the processing target and the copying or conversion is performed.

【0017】また、本発明の他の構成において、セルデ
ータ記憶手段に記憶されたデータに基づいて表データ作
成手段で作成された表データを表データ記憶手段に記憶
し、前記表データ記憶手段に記憶された表データを表デ
ータ処理手段に複写またはコンバートする際に、前記表
データ記憶手段に記憶された表データのいずれかのセル
に対応して、前記セルデータ記憶手段にデータが記憶さ
れているかを判別手段により判別し、いずれのセルに対
してもセルデータ記憶手段にデータが記憶されていない
と判別されたときに、制御手段が前記表データ処理手段
による処理を禁止する。
In another configuration of the present invention, the table data created by the table data creating means based on the data stored in the cell data storage means is stored in the table data storage means, and the table data storage means stores the table data in the table data storage means. When the stored table data is copied or converted to the table data processing means, data is stored in the cell data storage means in correspondence with any cell of the table data stored in the table data storage means. If it is determined that no data is stored in the cell data storage means for any cell, the control means prohibits the processing by the table data processing means.

【0018】また、本発明の他の構成によれば、所定の
有効桁数の数値データを演算するデータ処理装置におい
て、表データを読み込み、読み込まれた前記表データ中
より数値データを検出し、検出された前記数値データの
有効桁数が前記所定の有効桁数より大きいかを判別し、
該判別により大きいと判別された数値データの前記所定
の有効桁数を越える桁部分を丸め処理して、該数値デー
タの有効桁数を前記所定の有効桁数と一致させる。
According to another aspect of the present invention, in a data processing device for calculating numerical data having a predetermined number of significant digits, table data is read and numerical data is detected from the read table data. Determining whether the number of significant digits of the detected numerical data is greater than the predetermined number of significant digits,
A digit portion exceeding the predetermined effective digit number of the numerical data determined to be larger in the determination is rounded to match the effective digit number of the numerical data with the predetermined effective digit number.

【0019】また、本発明の他の構成において、データ
処理方法において、計算式を入力し、入力された前記計
算式の計算を実行し、入力された前記計算式と、該計算
式の前記計算の結果とを1ファイルとしてメモリに記憶
し、前記メモリに記憶されたファイルを複写またはコン
バートする際に、ファイル中の式を処理対象から除外し
て複写またはコンバートを行なう。
In another configuration of the present invention, in the data processing method, a calculation formula is input, the calculation of the input calculation formula is executed, and the input calculation formula and the calculation of the calculation formula are performed. The result and are stored in a memory as one file, and when the file stored in the memory is copied or converted, the expression in the file is excluded from the processing target and the copy or conversion is performed.

【0020】また、本発明の他の構成によれば、データ
処理方法において、セルデータメモリに記憶された、行
列形式の表の各セルに対応するデータに基づいて、表デ
ータを作成し、作成された表データを表データメモリに
記憶し、前記表データメモリに記憶された表データの複
写またはコンバートを指示し、該指示を受けて、前記表
データメモリに記憶された表データのいずれかのセルに
対応して、前記セルデータメモリにデータが記憶されて
いるかを判別し、該判別により、いずれのセルに対して
もセルデータメモリにデータが記憶されていないと判別
されたときに、指示された複写またはコンバートを禁止
する。
According to another aspect of the present invention, in the data processing method, the table data is created based on the data stored in the cell data memory and corresponding to each cell of the matrix table. Stored table data in the table data memory, instructing copying or conversion of the table data stored in the table data memory, and receiving the instruction, any of the table data stored in the table data memory It is determined whether or not data is stored in the cell data memory corresponding to the cell, and when it is determined that the data is not stored in the cell data memory for any of the cells, an instruction is issued. Prohibited copying or conversion.

【0021】[0021]

【実施例】以下、添付図面を参照しながら、本発明に係
わる実施例を詳細に説明する。なお、本発明の機能が実
行されるのであれば、単体の機器であっても、複数の機
器からなるシステムであっても、LAN等のネットワー
クを介して、処理が行なわれるシステムであっても本発
明が適用されることは言うまでもない。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. It should be noted that, as long as the functions of the present invention are executed, it may be a single device, a system composed of a plurality of devices, or a system in which processing is performed via a network such as a LAN. It goes without saying that the present invention is applied.

【0022】図1は本発明の一実施例に係る表計算シス
テムのシステム・ブロック図である。1はシステム・バ
スであり、以下に説明する各構成ブロックはこのシステ
ム・バスに接続されている。2はCPU(Centrt
al ProcessingUnit)であり、装置各
部を制御し、演算、判断などの各種処理を実行する。3
はプログラム・メモリ(以下PMEMと称す)で、後述
するフローチャートに対応する処理を含む、編集処理の
ための各種プログラムが適宜ハード・ディスク14から
選択/読み込みされる。PMEM3のプログラムはCP
U2にて実行する。又、キーボード8から入力されたデ
ータはテキスト・メモリでもあるPMEM3にコード情
報として格納される。
FIG. 1 is a system block diagram of a spreadsheet system according to an embodiment of the present invention. Reference numeral 1 is a system bus, and the respective constituent blocks described below are connected to this system bus. 2 is a CPU (Centert
Al processing Unit), which controls each part of the apparatus and executes various processes such as calculation and judgment. Three
Is a program memory (hereinafter referred to as PMEM), and various programs for editing processing, including processing corresponding to a flowchart described later, are appropriately selected / read from the hard disk 14. The program of PMEM3 is CP
Execute in U2. Further, the data input from the keyboard 8 is stored as code information in the PMEM 3 which is also a text memory.

【0023】4はイメージ・メモリ(以下IMEMと称
す)、5はイメージ・スキャナ、6は画像入出力制御
部、7はプリンタであり、イメージ・スキャナ5から読
み込まれた画像データは、IMEM4に展開されたのち
VRAM11上に展開され、CRT13に表示される。
また印刷イメージは、ビットマップデータとしてIME
M4に展開されたのち、画像入出力制御部6の制御によ
り、プリンタ7に出力される。
Reference numeral 4 is an image memory (hereinafter referred to as IMEM), 5 is an image scanner, 6 is an image input / output control unit, 7 is a printer, and image data read from the image scanner 5 is expanded in the IMEM 4. After that, it is expanded on the VRAM 11 and displayed on the CRT 13.
Also, the print image is IME as bitmap data.
After being expanded to M4, it is output to the printer 7 under the control of the image input / output control unit 6.

【0024】8は入力制御部であり、キーボード9、ポ
インティング・デバイス(以下PDと称す)10等の入
力装置が接続される。操作者はこのキーボード9を操作
することにより、システムの動作指令等を行う。またP
D10は、CRT13上で画像情報や図形データや文字
データや数値データを選択、加工指示するためのもの
で、本実施例ではマウスを使用している。これによりC
RT13上のマウスカーソルをX,Y方向に任意に移動
して、メニューの選択、画像データ、図形データ、文字
データ、数値データ、式データ、罫線データの選択、編
集を行なう。
An input control unit 8 is connected to an input device such as a keyboard 9 and a pointing device (hereinafter referred to as PD) 10. The operator operates the keyboard 9 to issue a system operation command and the like. Also P
D10 is for selecting and instructing image information, graphic data, character data, and numerical data on the CRT 13, and a mouse is used in this embodiment. This gives C
The mouse cursor on the RT 13 is arbitrarily moved in the X and Y directions to perform menu selection, image data, graphic data, character data, numerical data, formula data, and ruled line data.

【0025】11はビデオ・イメージ・メモリ(以下V
RAMと称す)、12は表示出力制御部、13はCRT
である。CRT13に表示されるデータはVRAM11
上にビットマップデータとして展開されている。例えば
図形データであれば、その位置、属性情報に対応した図
形パターンがVRAM11上に展開されており、また、
ソフト制御によりVRAM11の表示エリアに直接カー
ソルを発生し表示が可能である。
11 is a video image memory (hereinafter referred to as V
(Referred to as RAM), 12 is a display output controller, and 13 is a CRT.
Is. The data displayed on the CRT 13 is VRAM11.
It is developed as bitmap data above. For example, in the case of graphic data, a graphic pattern corresponding to the position and attribute information is developed on the VRAM 11, and
By software control, a cursor can be directly generated in the display area of the VRAM 11 for display.

【0026】14は外部記憶装置制御部、15、16は
画像データや図形データや文字データや数値データなど
を記憶しておくデータファイル用のディスクで、例えば
15はハード・ディスク(以下HDと称す)であり、1
6は、フロッピー・ディスク(以下FDと称す)であ
る。
Reference numeral 14 is an external storage device control unit, and 15 and 16 are data file disks for storing image data, graphic data, character data, numerical data, etc. For example, 15 is a hard disk (hereinafter referred to as HD). ) And 1
Reference numeral 6 is a floppy disk (hereinafter referred to as FD).

【0027】図2は本発明に係る一実施例の表計算シス
テムの外観図である。20はシステム・バス1、CPU
2、PMEM3、IMEM4などを内蔵した表計算シス
テムの本体部である。13はCRTで、9はキーボー
ド、10はPDである。21はFDドライブであり、F
D16がセットされて、画像データや図形データや文字
データや数値データや式データや式計算結果データや罫
線データをFD16に書き込んだり、またFD16に記
憶されている図形データや文字データや数値データや式
データや式計算結果データや罫線データを読み込んだり
する。また本発明は本表計算装置において実現されるの
はもちろんである。が、本発明を実現可能なプログラム
を記憶されたFD16を他の表計算装置のFDドライブ
21にセットし、そのプログラムをハードディスク15
へロードし、そのロードしたプログラムを実行すること
によって、本発明は他の表計算装置においても実現可能
である。
FIG. 2 is an external view of a spreadsheet system according to an embodiment of the present invention. 20 is a system bus 1 and a CPU
2, the main body of a spreadsheet system including PMEM3, IMEM4, etc. 13 is a CRT, 9 is a keyboard, and 10 is a PD. 21 is an FD drive, F
When D16 is set, image data, graphic data, character data, numerical data, formula data, formula calculation result data and ruled line data are written to the FD16, and graphic data, character data and numerical data stored in the FD16 are stored. Reads formula data, formula calculation result data, and ruled line data. The present invention is, of course, realized in the spreadsheet device of the present invention. Sets the FD 16 in which a program capable of implementing the present invention is stored in the FD drive 21 of another spreadsheet device, and the program is stored in the hard disk 15
The present invention can be implemented in another spreadsheet device by loading the program into the spreadsheet program and executing the loaded program.

【0028】図3から図8までは、本実施例の動作内容
を説明する図である。
3 to 8 are views for explaining the operation contents of this embodiment.

【0029】図3はコンバートされる表データの1例で
あり、CRT13に表示されたりプリンタ7に印刷され
たりした時の状態図を示している。30は表データシー
トを示し、31は30の表データシート内の行番号を示
し、32は30の表データシート内の列番号を示してい
る。33は30の表シート内のセルを示し、図3ではセ
ル1Aに数値データ「123456789」が記憶され
ていることを示している。
FIG. 3 is an example of converted table data, and shows a state diagram when it is displayed on the CRT 13 or printed on the printer 7. Reference numeral 30 indicates a tabular data sheet, 31 indicates a row number in the tabular data sheet of 30, and 32 indicates a column number in the tabular data sheet of 30. Reference numeral 33 indicates a cell in the front sheet of 30, and in FIG. 3, it is indicated that numerical data “123456789” is stored in the cell 1A.

【0030】図4は図3の表データがコンバートされた
後の表データの1例であり、この場合は数値データの有
効桁数が7である表計算アプリケーションにコンバート
されて、十の位以下の数値が切り捨てられ、「1234
56700」となっている状態を示している。この数値
データ40は図3の数値データ33を有効桁数7までを
コンバートし、有効桁数を越える数値に関しては切り捨
てた数値データである。
FIG. 4 shows an example of the tabular data after the tabular data of FIG. 3 has been converted. In this case, the tabular data is converted to a spreadsheet application in which the number of significant digits of the numerical data is 7, and the digit is 10 or less. Is rounded down to "1234
56700 ”is shown. The numerical data 40 is numerical data obtained by converting the numerical data 33 of FIG. 3 up to the number of significant digits 7 and truncating numerical values exceeding the number of significant digits.

【0031】図5は図3の表データがコンバートされた
後の表データの1例であり、この場合は数値データの有
効桁数が7である表計算アプリケーションにコンバート
されて、十の位以下の数値が切り上げられたか四捨五入
され、「123456800」となっている状態図を示
している。数値データ50は、図3の数値データ33を
有効桁数7までをコンバートし、有効桁数を越える数値
に関しては切り上げもしくは四捨五入した数値データで
ある。
FIG. 5 shows an example of the tabular data after the tabular data of FIG. 3 has been converted. In this case, the tabular data is converted to a spreadsheet application in which the number of significant digits of the numerical data is 7, and the digit is 10 or less. Shows a state diagram in which the numerical value of is rounded up or rounded to be "123456800". The numerical data 50 is numerical data obtained by converting the numerical data 33 of FIG. 3 up to the effective digit number 7 and rounding up or rounding off the numerical value exceeding the effective digit number.

【0032】図6は、数値データをコンバートする時
に、有効桁数以上の数値データの丸め処理をどうするか
を、ユーザが指定する時のCRT13の表示画面であ
る。60は数値変換方法指定ウインドウであり、61は
このフィールドが反転表示されていると有効桁数の違う
数値を切り捨てでコンバートすることを示す切り捨てモ
ードフィールドであり、62は切り上げでコンバートす
ることを示す切り上げモードフィールドであり、63は
四捨五入でコンバートすることを示す四捨五入モードフ
ィールドである。
FIG. 6 is a display screen of the CRT 13 when the user specifies what to do with the rounding processing of the numerical data having the number of significant digits or more when converting the numerical data. Reference numeral 60 is a numerical conversion method designation window, 61 is a truncation mode field indicating that a numerical value having a different number of significant digits is converted by truncation when this field is highlighted, and 62 indicates conversion by rounding up. A round-up mode field 63 is a round-off mode field indicating that the conversion is performed by rounding.

【0033】図7は、本実施例の有効桁数の大きい数値
データをコンバートしようとする時に、有効桁数以上の
桁の数値を自動的に切り捨ててコンバートする動作を説
明するフローチャートである。
FIG. 7 is a flow chart for explaining the operation of automatically truncating and converting the numerical values of the digits greater than the effective digit number when converting the numerical data having a large effective digit number in the present embodiment.

【0034】まずステップS1にて、コンバート処理を
行ないたい表データの登録されているFD16を、FD
ドライブ21にセットし、ステップS2にて、キーボー
ド9より表データのコンバート処理を開始する指示がな
されたかどうかを判断し、指示がなされていなければス
テップS2でループし、指示があれば、ステップS3に
進む。ステップS3にて、FD16より表データを読み
込み、PMEM3に展開し記憶しておき、ステップS4
にて、表データ内に数値データがあるかどうか判定す
る。数値データがなければ、ステップS7に進み、通常
の表データコンバート処理を行ない、数値データあれ
ば、ステップS5に進み、コンバートする表データに記
憶されている数値データの有効桁数が、コンバート後に
作成する数値データの有効桁数よりも大きいかどうか
(つまり、コンバートした表データを処理する表計算ア
プリケーションで扱える有効桁数と比較して大きいかど
うか)を判定し、大きくなければステップS7に進み通
常のコンバート処理を行ない、大きければステップS6
に進む。ステップS6では、コンバート後に作成する数
値データの有効桁数以上の桁の数値を切り捨ててコンバ
ートした表データをPMEM3に作成し、ステップS8
に進む。またステップS7では、通常のコンバート処理
を行なって作成した表データをPMEM3に作成し、ス
テップS8に進む。ステップS8ではPMEM3に作成
されたコンバート表データをHD15やFD16に書き
込みコンバート処理を終了する。
First, in step S1, the FD 16 in which the table data to be converted is registered is
It is set in the drive 21, and it is determined in step S2 whether or not an instruction to start conversion processing of table data is given from the keyboard 9. If no instruction is given, the process loops at step S2, and if there is an instruction, step S3 Proceed to. In step S3, the table data is read from the FD 16 and is expanded and stored in the PMEM 3 and stored in step S4.
At, it is determined whether there is numerical data in the table data. If there is no numerical data, the process proceeds to step S7 to perform normal table data conversion processing. If there is numerical data, the process proceeds to step S5 and the effective digit number of the numerical data stored in the table data to be converted is created after conversion. Is determined to be larger than the number of significant digits of the numerical data (that is, is larger than the number of significant digits that can be handled by the spreadsheet application that processes the converted table data). Is converted, and if it is larger, step S6.
Proceed to. In step S6, the table data converted by truncating the numerical values of the significant digits or more of the numerical data created after the conversion is created in PMEM3, and the step S8
Proceed to. In step S7, the table data created by performing the normal conversion process is created in PMEM3, and the process proceeds to step S8. In step S8, the conversion table data created in PMEM3 is written in the HD 15 or the FD 16 and the conversion process ends.

【0035】以上の処理を行なって表データをコンバー
トした例が図3と図4であり、図3は有効桁数9の数値
データが入力されている表データを示す図であり、この
表データを有効桁数7である表データにコンバートした
結果の図が図4である。
An example of converting the table data by performing the above processing is shown in FIGS. 3 and 4, and FIG. 3 is a diagram showing the table data in which the numerical data of 9 significant digits is input. FIG. 4 is a diagram showing a result of converting the table data having 7 significant digits.

【0036】図7では、有効桁数以上の桁の数値を自動
的に切り捨ててコンバートする処理に関して説明した
が、同様に、有効桁数以上の桁の数値を自動的に切り上
げる処理や、自動的に四捨五入する処理も、ステップS
6の時に数値データを切り捨てる代わりに切り上げた
り、四捨五入するようにするだけで、他のステップは全
く同様に実行することで、実現できる。
Although FIG. 7 has been described with respect to the process of automatically rounding down and converting the numerical values of the significant digits or more, similarly, the process of automatically rounding up the numerical values of the significant digits or more, or The process of rounding off to step S
At the time of 6, the numerical data may be rounded up or rounded instead of being rounded down, and the other steps can be realized by executing exactly the same.

【0037】図8は、本実施例の有効桁数の大きい数値
データをコンバートしようとする時に、有効桁数以上の
桁の数値を変換する(丸め処理する)モード(切り上げ
・切り捨て・四捨五入)を、ユーザが指定してコンバー
トする動作を説明するフローチャートである。
FIG. 8 shows a mode (rounding up, rounding down, rounding) of converting (rounding) a numerical value having a number of significant digits or more when converting numerical data having a large number of significant digits in this embodiment. 5 is a flow chart for explaining an operation of conversion designated by a user.

【0038】ステップS10からステップS14まで
は、図7のステップS1からステップS5までと同様で
ある。ステップS14で、コンバートする表データに記
憶されている数値データの有効桁数が、コンバート後に
作成する数値データの有効桁数よりも大きいと判断され
た場合には、ステップS15に進み、数値変換モードを
指定するウインドウを表示し、有効桁数以上の桁の数値
をどう処理するかを指定する。この時CRT13に表示
される変換モード指定ウインドウを示したのが図6であ
る。本実施例では、数値変換方法として切り捨て・切り
上げ・四捨五入の3つの方法が指定できるようになって
いる。3つの変換方法の指定方法は、PD10に連動し
て動作するマウスカーソルを使用し、例えば切り捨てモ
ードを指定する場合には、マウスカーソルを、切り捨て
モードフィールド61上に移動して、PD10に付いて
いるボタンを押下することによって、切り捨てモードフ
ィールド61を反転表示させることにより行なう。
Steps S10 to S14 are the same as steps S1 to S5 in FIG. When it is determined in step S14 that the number of significant digits of the numerical data stored in the table data to be converted is larger than the number of significant digits of the numerical data created after the conversion, the process proceeds to step S15, and the numerical conversion mode is set. Display the window that specifies, and specify how to process numbers with significant digits. FIG. 6 shows the conversion mode designation window displayed on the CRT 13 at this time. In this embodiment, three methods of rounding down, rounding up, and rounding off can be designated as numerical conversion methods. The three conversion method designation methods use a mouse cursor that operates in conjunction with the PD10. For example, when designating a truncation mode, the mouse cursor is moved to the truncation mode field 61 and attached to the PD10. This is done by depressing the button for displaying the truncation mode field 61 in reverse video.

【0039】そしてステップS16に進み、ステップS
15で指定された変換モードに従って数値データを変換
し、コンバートされた表データをPMEM3に作成す
る。またステップS17は、図7のステップS7と同様
であり、通常のコンバート処理を行なって作成した表デ
ータをPMEM3に作成する。ステップS16またはス
テップS17にてコンバート表データをPMEM3に作
成すると、ステップS18では、コンバート表データを
HD15やFD16に書き込み、コンバート処理を終了
する。
Then, the process proceeds to step S16, and step S
Numerical data is converted in accordance with the conversion mode designated by 15, and converted table data is created in PMEM3. Further, step S17 is the same as step S7 in FIG. 7, and the table data created by performing the normal conversion process is created in PMEM3. When the conversion table data is created in the PMEM 3 in step S16 or step S17, the conversion table data is written in the HD 15 or the FD 16 in step S18, and the conversion process ends.

【0040】以上の処理を変換モード四捨五入で行なっ
て表データをコンバートした例が図3と図5であり、図
3は有効桁数9の数値データが入力されている表データ
を示す図であり、この表データを有効桁数7である表デ
ータにコンバートした結果の図が図5である。
FIGS. 3 and 5 show examples of converting the table data by performing the above processing in the conversion mode rounding, and FIG. 3 is a diagram showing the table data in which the numerical data of 9 significant digits is input. FIG. 5 is a diagram showing a result of converting the table data into table data having 7 significant digits.

【0041】以上説明したように、本実施例によれば、
表計算装置で扱える有効桁数よりも有効桁数の大きい数
値が入力されても、その数値データを受け付けるので、
ユーザがいちいち数値データを入力し直すという煩わし
さが解消される。また表計算装置で扱える有効桁数外の
数値を無条件に切り捨ててることもなく、ユーザが希望
する方法で変換するので、数値データ変換後にユーザが
希望する値に入力し直す手間が不要になる。
As described above, according to this embodiment,
Even if a numerical value with a larger number of significant digits than the number of significant digits that can be handled by a spreadsheet device is entered, the numerical data will be accepted, so
The annoyance of the user re-entering numerical data is eliminated. In addition, since the numerical value outside the significant digits that can be handled by the spreadsheet device is not unconditionally rounded down and converted by the method desired by the user, there is no need to re-enter the value desired by the user after conversion of numerical data. .

【0042】〔第2実施例〕図9から図15までは、第
2実施例の動作内容を説明する図である。
[Second Embodiment] FIGS. 9 to 15 are views for explaining the operation contents of the second embodiment.

【0043】図9は表計算データの1例である。30は
表計算データシートであり、このような形式でCRT1
3に表示されたり、プリンタ7から印刷されたりする。
31は表計算データシートの行番号を示すフィールドで
ある。32は表計算データシートの列番号を示すフィー
ルドである。33は表計算データシートのセル内に表示
されるデータであり、この場合は34の式がセル1Aに
登録されており、その式『weekday(”1993
/06/13”)の計算結果である0が表示されてい
る。
FIG. 9 shows an example of spreadsheet data. Reference numeral 30 is a spreadsheet data sheet.
3 is displayed or is printed from the printer 7.
Reference numeral 31 is a field indicating the row number of the spreadsheet data sheet. 32 is a field indicating the column number of the spreadsheet data sheet. 33 is the data displayed in the cell of the spreadsheet data sheet. In this case, the formula of 34 is registered in the cell 1A, and the formula "weekday (" 1993
0 which is the calculation result of / 06/13 ") is displayed.

【0044】図10は表計算データのデータフォーマッ
トの1例であり、本実施例では表計算データの表示およ
び編集中には、この表計算データフォーマットに従っ
て、PMEM3にデータが展開されており、また表計算
データをHD15やFD16に記憶する時もこの表計算
データフォーマットに従って記憶されているものとす
る。40は表計算データ・ヘッダ部であり、この中に本
表計算データの行数と列数が記憶されている。41は各
セルに記憶されているデータの領域であり、1つのセル
に付き、図11で示す情報が記憶されていて、これらの
セルの情報が複数個記憶されている。本実施例では、セ
ルのデータの並びはデータの登録された順とし、セルに
データがない場合には本セルデータ領域には何も記憶し
ないこととする。42は表計算データの終了を示すエン
ド・オブ・ファイルの情報が記憶されている。
FIG. 10 shows an example of the data format of the spreadsheet data. In the present embodiment, during the display and editing of the spreadsheet data, the data is expanded in the PMEM3 according to the spreadsheet data format. Even when the spreadsheet data is stored in the HD 15 or the FD 16, it is assumed that the spreadsheet data is stored according to the spreadsheet data format. Reference numeral 40 denotes a spreadsheet data header section, in which the number of rows and columns of the spreadsheet data are stored. Reference numeral 41 denotes an area of data stored in each cell, and the information shown in FIG. 11 is stored for one cell, and a plurality of pieces of information of these cells are stored. In this embodiment, the cell data is arranged in the order in which the data is registered, and if there is no data in the cell, nothing is stored in the cell data area. Reference numeral 42 stores end-of-file information indicating the end of spreadsheet data.

【0045】図11は、各セルデータのフォーマットの
1例であり、各セルのデータの領域41にセルデータの
数分だけ記憶されている。50は、本セルデータの記憶
されている番号が記憶されていて、例えば”1行A列”
のように、行と列の番号で記されている。51は本セル
に記憶されている式のデータが記憶されていて、例え
ば”weekday(”1993/06/13”)”の
ような式データが記憶されている。52は51に記憶さ
れている式データの計算結果の値、もしくは51に式デ
ータが何も記憶されていなければ、本セルに表示する値
が、じかに記憶されている。
FIG. 11 shows an example of the format of each cell data, and the number of pieces of cell data is stored in the data area 41 of each cell. Reference numeral 50 stores the number in which this cell data is stored, for example, "1 row A column".
, Are numbered by row and column. Reference numeral 51 stores the formula data stored in the present cell, for example, formula data such as "weekday (" 1993/06/13 ")". 52 is the value of the calculation result of the formula data stored in 51, or, if no formula data is stored in 51, the value displayed in this cell is directly stored.

【0046】図12は、図10の表計算データのデータ
フォーマット、及び図11の各セルデータのフォーマッ
トに基づいて、図9に示した表計算データを表したもの
である。60は40のヘッダ部に当たり、本表計算デー
タは、2行2列のデータであることを示している。61
から63は41のセルデータ領域であり、61は50の
セル番号であり本セルデータは1行A列のデータである
ことを示している。62は51の式データに当たり式”
weekday(”1993/06/13”)”が記憶
されている。63は52の式の計算結果にあたり、62
に記憶されている式の計算結果である”0”が記憶され
ている。64は42のエンド・オブ・ファイル情報部に
当たり、0xFF等のファイルの終了を示すコードが記
憶されている。
FIG. 12 shows the spreadsheet data shown in FIG. 9 based on the data format of the spreadsheet data of FIG. 10 and the format of each cell data of FIG. Reference numeral 60 denotes a header portion of 40, which indicates that the spreadsheet data is data in 2 rows and 2 columns. 61
From 63 to 63 are 41 cell data areas, and 61 is a cell number of 50, indicating that this cell data is data of 1st row and A column. 62 is a formula corresponding to 51 formula data "
"weekday (" 1993/06/13 ")" is stored. 63 is the calculation result of the formula of 52 and is 62
“0”, which is the calculation result of the formula stored in the above table, is stored. Reference numeral 64 denotes an end-of-file information portion of 42, and a code indicating the end of the file such as 0xFF is stored.

【0047】図13は、図9の表計算データを、他の表
計算アプリケーションへコンバートして再計算した時
に、関数weekdayの機能が「日曜日を0、・・・
土曜日を6として、与えられたパラメータの曜日をリタ
ーンする」から「月曜日を0、・・・日曜日を6とし
て、与えられたパラメータの曜日をリターンする」に変
わったが為に、セル1Aに表示される値が0から6に変
わった状態を示す図である。
FIG. 13 shows that when the spreadsheet data of FIG. 9 is converted into another spreadsheet application and recalculated, the function of the function weekday reads "Sunday is 0, ...
Displayed in cell 1A because it changed from "Saturday is set to 6 and returns the day of the given parameter" to "Monday is 0, ..., Sunday is set to 6 and the day of the given parameter is returned" It is a figure which shows the state in which the value to be changed changed from 0 to 6.

【0048】図14は、図12で示された表計算データ
を、本発明に従って式データはコンバートしないで、式
の計算結果データだけをコンバートした時の、表計算デ
ータの状態を示す図である。60、61、63、64は
図12と同じ情報がセットされ、62の式データ部には
式データは未登録だという情報がセットされる(例えば
62のフィールド全部をNULLコードで埋める)。
FIG. 14 is a diagram showing the state of the spreadsheet data when the spreadsheet data shown in FIG. 12 is not converted into the formula data according to the present invention, but only the calculation result data of the formula is converted. . The same information as in FIG. 12 is set in 60, 61, 63 and 64, and the information that the formula data is not registered is set in the formula data part of 62 (for example, all fields of 62 are filled with NULL code).

【0049】図15は、本発明の1実施例を示すフロー
チャートであり、以下フローチャートに従って本発明の
動作を説明する。
FIG. 15 is a flow chart showing an embodiment of the present invention, and the operation of the present invention will be described below with reference to the flow chart.

【0050】まずステップS21にて、他の表計算アプ
リケーションで作成された表計算データの記憶されたF
D16をFDドライブ21にセットする。そしてステッ
プS22にて、FD16に記憶された表計算データを本
表計算アプリケーションにコンバートする指示が、キー
ボード9よりなされたどうかを判断する。指示された場
合にはステップS23に進み、なされない場合には指示
があるまでステップS22でループする。そしてコンバ
ート指示されると、ステップS23でFD16より表計
算データを読み込み、PMEM3などに一時蓄え、ステ
ップS24でPMEM3に蓄えた表計算データを元にし
て、元の表計算データの式データだけを未設定にして、
新たに表計算データをHD15やFD16に作成する。
この時のコンバート前の表計算データの例が図12であ
り、コンバート後の表計算データの例が図14である。
First, in step S21, the F stored with spreadsheet data created by another spreadsheet application is stored.
Set D16 in the FD drive 21. Then, in step S22, it is determined whether or not an instruction to convert the spreadsheet data stored in the FD 16 into the spreadsheet application is given from the keyboard 9. If so, the process proceeds to step S23. If not, the process loops at step S22 until an instruction is given. When the conversion is instructed, the spreadsheet data is read from the FD 16 in step S23 and temporarily stored in the PMEM3 or the like, and only the formula data of the original spreadsheet data is not stored based on the spreadsheet data stored in the PMEM3 in step S24. Set it,
Spreadsheet data is newly created in the HD 15 or the FD 16.
An example of the spreadsheet data before the conversion at this time is shown in FIG. 12, and an example of the spreadsheet data after the conversion is shown in FIG.

【0051】以上説明したように、本実施例によれば、
表計算データを複写またはコンバートする時に、式デー
タは未設定として複写またはコンバートし、式の計算結
果だけを複写またはコンバートするので、複写またはコ
ンバートされた表計算データが、その表計算データを作
成したのとは異なる表計算アプリケーション上で再計算
されても、式の計算結果が変わらないし表示も変わらな
い、つまり再計算実行後に、ユーザがいちいちセル内に
表示されているデータが変わったかどうかを確かめる必
要がないという効果がある。
As described above, according to this embodiment,
When copying or converting spreadsheet data, formula data is copied or converted as unset, and only the calculation result of the formula is copied or converted, so the copied or converted spreadsheet data created the spreadsheet data. Even if it is recalculated on a different spreadsheet application, the calculation result of the formula does not change or the display does not change, that is, the user confirms whether the data displayed in the cell has changed after executing the recalculation. The effect is that there is no need.

【0052】〔実施例3〕図16は、表データの1例を
示す図である。30は表データシートであり、このよう
な形式でCRT13に表示されたりプリンタ7から印刷
されたりする。31は表データシートの行番号を示すフ
ィールドである。32は表データシートの列番号を示す
フィールドである。
[Third Embodiment] FIG. 16 is a diagram showing an example of table data. A table data sheet 30 is displayed on the CRT 13 or printed by the printer 7 in such a format. Reference numeral 31 is a field indicating the row number of the table data sheet. 32 is a field indicating the column number of the table data sheet.

【0053】前述の図10、図11及び図17は、本発
明の実施例の動作内容を説明する図である。
FIG. 10, FIG. 11 and FIG. 17 described above are diagrams for explaining the operation contents of the embodiment of the present invention.

【0054】図10は表データのデータフォーマットの
1例であり、本実施例では表データの表示および編集中
には、この表データフォーマットに従ってPMEM3に
データが展開されており、また表データをHD15やF
D16に記憶する時もこの表データフォーマットに従っ
て記憶されているものとする。40は表データ・ヘッダ
部であり、この中に本表データのバージョン番号等が記
憶されている。詳しくは図17に記す。41は各セルに
記憶されているデータの領域であり、1つのセルに付
き、図11で示す情報が記憶されていて、これらのセル
の情報が複数個記憶されている。本実施例ではセルのデ
ータの並びはデータの登録された順とし、セルにデータ
がない場合には本セルデータ領域には何も記憶しないこ
ととする。42は、表計算データの終了を示すエンド・
オブ・ファイルの情報が記憶されている。
FIG. 10 shows an example of the data format of the table data. In this embodiment, during the display and editing of the table data, the data is expanded in the PMEM3 according to this table data format, and the table data is HD15. And F
It is assumed that the data is also stored according to this table data format when it is stored in D16. Reference numeral 40 is a table data header section in which the version number of the table data is stored. Details are shown in FIG. Reference numeral 41 denotes an area of data stored in each cell, and the information shown in FIG. 11 is stored for one cell, and a plurality of pieces of information of these cells are stored. In this embodiment, the cell data is arranged in the order in which the data is registered, and if there is no data in the cell, nothing is stored in the cell data area. 42 is an end indicating the end of the spreadsheet data.
The information of the file is stored.

【0055】図11は各セルデータのフォーマットの1
例であり41の各セルに記憶されているデータの領域に
セルデータの数分だけ記憶されている。50は本セルデ
ータの記憶されている番号が記憶されていて、例えば”
1行A列”のように行と列の番号で記されている。51
は本セルに記憶されている式のデータが記憶されてい
て、例えば”weekday(”1993/06/1
3”)”のような式データが記憶されている。52は5
1に記憶されている式データの計算結果の値、もしくは
51に式データが何も記憶されていなければ本セルに表
示する値がじかに記憶されている。
FIG. 11 shows the format 1 of each cell data.
This is an example, and the number of cell data is stored in the data area stored in each cell of 41. The number 50 in which the cell data is stored is stored in 50, for example, "
Row and column numbers, such as "1 row, A column" 51
Stores the data of the formula stored in this cell. For example, "weekday (" 1993/06/1
Expression data such as 3 ")" is stored. 52 is 5
The value of the calculation result of the formula data stored in 1 or the value displayed in this cell is directly stored if there is no formula data stored in 51.

【0056】図17は40の表データ・ヘッダ部に記憶
されている情報に付いて説明した図で有り、70は本表
データのバージョン番号を示し、71は本表データのシ
ートのサイズを示し、例えば図16のような表データの
場合には”2行2列”と記憶されている。72は41の
各セルに記憶されているデータの領域に何セル分のデー
タが記憶されているかを示す数字が記憶されている。例
えば図16のような表データの場合には”0”と記憶さ
れている。
FIG. 17 is a diagram for explaining the information stored in the table data header portion of 40, where 70 indicates the version number of this table data and 71 indicates the size of the sheet of this table data. For example, in the case of table data as shown in FIG. 16, “2 rows and 2 columns” is stored. Reference numeral 72 stores a number indicating how many cells of data are stored in the data area stored in each cell of 41. For example, in the case of table data as shown in FIG. 16, “0” is stored.

【0057】図18は本発明の1実施例を示すフローチ
ャートであり、以下フローチャートに従って本発明の動
作を説明する。
FIG. 18 is a flow chart showing an embodiment of the present invention. The operation of the present invention will be described below with reference to the flow chart.

【0058】まずステップS31にて、他の表計算アプ
リケーションで作成された表データの記憶されたFD1
6をFDドライブ21にセットする。そしてステップS
32にて、FD16に記憶された表データを本表計算ア
プリケーションにコンバートする指示が、キーボード9
よりなされたどうかを判断する。指示された場合にはス
テップS33に進み、なされない場合には指示があるま
でステップS32でループする。そしてコンバート指示
されると、ステップS33でFD16より表データを読
み込み、PMEM3などに一時蓄え、ステップS34に
て本表データは少なくとも1つのセルには何かデータが
記憶されているかどうか判断する。この判断の方法は、
例えば、表データ・ヘッダ部40内の、72の各セルに
記憶されているデータの領域に何セル分のデータが記憶
されているかを示す数字が0かどうかで行なう。ここ
で、何らかのデータが記憶されていると判断されたなら
ば、ステップS35に移り、表データのコンバートを行
ない、何のデータも記憶されていないと判断したなら
ば、コンバート処理を行なわずに終了する。
First, in step S31, the FD1 in which the table data created by another spreadsheet application is stored.
6 is set in the FD drive 21. And step S
At 32, an instruction to convert the tabular data stored in the FD 16 into this spreadsheet application is given by the keyboard 9
Determine if more done. If so, the process proceeds to step S33. If not, the process loops at step S32 until an instruction is given. When the conversion is instructed, the table data is read from the FD 16 in step S33 and temporarily stored in the PMEM 3 or the like, and it is determined in step S34 whether or not any data is stored in at least one cell. The method of this judgment is
For example, it is performed depending on whether the number indicating how many cells of data is stored in the data area stored in each cell of 72 in the table data header section 40 is 0 or not. If it is determined that some data is stored, the process proceeds to step S35 to convert the table data, and if it is determined that no data is stored, the conversion process is not performed and the process ends. To do.

【0059】以上説明したように、本実施例によれば、
表データを複写またはコンバートする時に、どのセルに
も何も登録されていない表データはコンバートしないの
で、無駄な処理を行なわず表計算編集装置を有効に使用
できるという効果がある。
As described above, according to this embodiment,
When copying or converting the table data, since the table data in which nothing is registered in any cell is not converted, there is an effect that the spreadsheet calculation apparatus can be effectively used without performing unnecessary processing.

【0060】[0060]

【発明の効果】以上説明したように、本発明によれば、
本表計算装置で扱える有効桁数よりも有効桁数の大きい
数値が入力されると、その数値データを受けつけるの
で、ユーザがいちいち数値データを入力し直さなければ
ならないという煩わしさがなくなる。また無条件に本表
計算装置で扱える有効桁数外の数値を切り捨ててること
なく、ユーザが希望する方法で変換するので、ユーザが
数値データを変換後に希望する値に入力し直す煩わしさ
がなくなるという効果がある。
As described above, according to the present invention,
When a numerical value having a larger number of significant digits than the number of significant digits that can be handled by this spreadsheet device is input, the numerical value data is accepted, so that the user does not have to input the numerical data again. Also, unconditionally converting the numerical value outside the number of significant digits that can be handled by this spreadsheet device by the method desired by the user, there is no need for the user to re-enter numerical data into the desired value after conversion. There is an effect.

【0061】以上で説明したように、本発明によれば、
複写またはコンバートされた表計算データが、その表計
算データを作成したのとは異なる表計算アプリケーショ
ン上で再計算されても、式の計算結果が変わらないし表
示も変わらない、つまり再計算実行後に、ユーザがいち
いちセル内に表示されているデータが変わったかどうか
を確かめることが不要になるという効果がある。
As explained above, according to the present invention,
Even if the copied or converted spreadsheet data is recalculated on a different spreadsheet application that created the spreadsheet data, the calculation result of the formula does not change or the display does not change. This has the effect of eliminating the need for the user to check whether or not the data displayed in the cell has changed.

【0062】以上説明したように、本発明によれば、表
データを複写またはコンバートする時に、どのセルにも
何も登録されていない表データはコンバートしないの
で、無駄な処理を行なわず表計算編集装置を有効に使用
できるという効果がある。
As described above, according to the present invention, when the table data is copied or converted, the table data in which nothing is registered in any cell is not converted. The device can be effectively used.

【図面の簡単な説明】[Brief description of drawings]

【図1】実施例のにおける表計算システムのブロック構
成図である。
FIG. 1 is a block configuration diagram of a spreadsheet system in an example.

【図2】実施例の表計算処理装置の外観図である。FIG. 2 is an external view of a spreadsheet processing apparatus according to an embodiment.

【図3】コンバートされる表データの例を示す図であ
る。
FIG. 3 is a diagram showing an example of converted table data.

【図4】コンバートされた後の表データの例を示す図で
ある。
FIG. 4 is a diagram showing an example of table data after being converted.

【図5】コンバートされた後の表データの例を示す図で
ある。
FIG. 5 is a diagram showing an example of table data after being converted.

【図6】数値変換方法を指定する際の表示画面を示す図
である。
FIG. 6 is a diagram showing a display screen when a numerical conversion method is designated.

【図7】実施例のフローチャートである。FIG. 7 is a flowchart of an example.

【図8】実施例のフローチャートである。FIG. 8 is a flowchart of an example.

【図9】表計算データの表示例を示す図である。FIG. 9 is a diagram showing a display example of spreadsheet data.

【図10】表計算データのフォーマットの例を示す図で
ある。
FIG. 10 is a diagram showing an example of a format of spreadsheet data.

【図11】セルデータのフォーマットの例を示す図であ
る。
FIG. 11 is a diagram showing an example of a format of cell data.

【図12】表計算データの具体例を示す図である。FIG. 12 is a diagram showing a specific example of spreadsheet data.

【図13】従来の方法によりコンバートされた表計算デ
ータの表示例を示す図である。
FIG. 13 is a diagram showing a display example of spreadsheet data converted by a conventional method.

【図14】実施例によりコンバートされた表計算データ
の例を示す図である。
FIG. 14 is a diagram showing an example of spreadsheet data converted according to an embodiment.

【図15】実施例のフローチャートである。FIG. 15 is a flowchart of an example.

【図16】コンバートされる表データの例を示す図であ
る。
FIG. 16 is a diagram showing an example of converted table data.

【図17】表データ・ヘッダ部のフォーマットの例を示
す図である。
FIG. 17 is a diagram showing an example of a format of a table data header part.

【図18】実施例のフローチャートである。FIG. 18 is a flowchart of an example.

【符号の説明】[Explanation of symbols]

1 システム・バス 2 CPU 3 プログラムメモリ 4 イメージメモリ 5 イメージ・スキャナ 6 画像入出力制御部 7 プリンタ 8 入出力制御部 9 キーボード 10 ポインティング・デバイス 11 VRAM 12 表示出力制御部 13 CRT 14 外部記憶制御部 15 ハード・ディスク 16 フロッピ・ディスク 1 System Bus 2 CPU 3 Program Memory 4 Image Memory 5 Image Scanner 6 Image Input / Output Control Unit 7 Printer 8 Input / Output Control Unit 9 Keyboard 10 Pointing Device 11 VRAM 12 Display Output Control Unit 13 CRT 14 External Storage Control Unit 15 Hard disk 16 Floppy disk

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 所定の有効桁数の数値データを演算する
演算手段と、 表データを読み込む読み込み手段と、 該読み込み手段により読み込まれた表データ中より数値
データを検出する検出手段と、 該検出手段により検出された数値データの有効桁数が前
記所定の有効桁数より大きいかを判別する判別手段と、 該判別手段により大きいと判別された数値データの前記
所定の有効桁数を越える桁部分を丸め処理して、該数値
データの有効桁数を前記所定の有効桁数と一致させる変
換手段とを具えることを特徴とするデータ処理装置。
1. A calculation means for calculating numerical data having a predetermined number of significant digits, a reading means for reading table data, a detection means for detecting numerical data from the table data read by the reading means, and the detection. Discriminating means for discriminating whether or not the number of significant digits of the numerical data detected by the means is larger than the predetermined number of significant digits, and a digit portion exceeding the predetermined number of significant digits of the numerical data discriminated by the discriminating means. And a conversion means for matching the number of significant digits of the numerical data with the predetermined number of significant digits.
【請求項2】 前記丸め処理は、前記数値データの、上
位から数えて前記所定の有効桁数より1桁下位の桁を四
捨五入する処理であることを特徴とする請求項1に記載
のデータ処理装置。
2. The data processing according to claim 1, wherein the rounding process is a process of rounding off a digit of one digit lower than the predetermined number of significant digits of the numerical data, counting from an upper digit. apparatus.
【請求項3】 前記丸め処理は、前記数値データの、上
位から数えて前記所定の有効桁数より下位の桁を切り捨
てる処理であることを特徴とする請求項1に記載のデー
タ処理装置。
3. The data processing apparatus according to claim 1, wherein the rounding process is a process of discarding digits lower than the predetermined significant digit number counted from the upper digits of the numerical data.
【請求項4】 前記丸め処理は、前記数値データの、上
位から数えて前記所定の有効桁数より1桁下位の桁を切
り上げる処理であることを特徴とする請求項1に記載の
データ処理装置。
4. The data processing apparatus according to claim 1, wherein the rounding process is a process of rounding up the digits of the numerical data that are one digit lower than the predetermined number of significant digits counted from the upper digits. .
【請求項5】 前記丸め処理の処理形式を選択する選択
手段を具え、前記変換手段は、該選択手段により選択さ
れた処理形式の丸め処理を行なうことを特徴とする請求
項1に記載のデータ処理装置。
5. The data according to claim 1, further comprising selection means for selecting a processing format of the rounding processing, wherein the conversion means performs the rounding processing of the processing format selected by the selection means. Processing equipment.
【請求項6】 計算式を入力する入力手段と、 該入力手段で入力された計算式の計算を行なう計算手段
と、 前記入力手段で入力された計算式と、該計算式の前記計
算手段による計算結果とを1ファイルとして記憶する記
憶手段と、 前記記憶手段に記憶されたファイルを複写またはコンバ
ートするファイル処理手段とを具え、 該ファイル処理手段が、ファイル中の式を処理対象から
除外して複写またはコンバートを行なうことを特徴とす
るデータ処理装置。
6. An input unit for inputting a calculation formula, a calculation unit for calculating the calculation formula input by the input unit, a calculation formula input by the input unit, and the calculation unit for the calculation formula. The storage unit stores the calculation result as one file, and the file processing unit that copies or converts the file stored in the storage unit. The file processing unit excludes the expression in the file from the processing target. A data processing device characterized by performing copying or converting.
【請求項7】 行列形式の表の各セルに対応するデータ
を記憶するセルデータ記憶手段と、 該セルデータ記憶手段に記憶されたデータに基づいて表
データを作成する表データ作成手段と、 該表データ作成手段で作成された表データを記憶する表
データ記憶手段と、 前記表データ記憶手段に記憶された表データを複写また
はコンバートする表データ処理手段と、 前記表データ記憶手段に記憶された表データのいずれか
のセルに対応して、前記セルデータ記憶手段にデータが
記憶されているかを判別する判別手段と、 該判別手段により、いずれのセルに対してもセルデータ
記憶手段にデータが記憶されていないと判別されたとき
に、前記表データ処理手段による処理を禁止する制御手
段とを具えることを特徴とするデータ処理装置。
7. Cell data storage means for storing data corresponding to each cell of a matrix format table, table data creation means for creating table data based on the data stored in the cell data storage means, Table data storage means for storing the table data created by the table data creation means, table data processing means for copying or converting the table data stored in the table data storage means, and table data storage means stored in the table data storage means Discrimination means for discriminating whether data is stored in the cell data storage means corresponding to any cell of the table data, and data is stored in the cell data storage means for any cell by the discrimination means. A data processing apparatus comprising: a control unit that prohibits processing by the table data processing unit when it is determined that the data is not stored.
【請求項8】 前記セルデータ記憶手段に記憶されたデ
ータの個数を記憶するデータ数記憶手段を具え、 前記判別手段は、該データ数記憶手段に記憶されたデー
タの個数が0のとき、いずれのセルに対してもセルデー
タ記憶手段にデータが記憶されていないと判別すること
を特徴とする請求項7に記載のデータ処理装置。
8. The data number storage means for storing the number of data stored in the cell data storage means, wherein the discriminating means determines when the number of data stored in the data number storage means is zero. 8. The data processing apparatus according to claim 7, wherein it is determined that no data is stored in the cell data storage means even for the cell.
【請求項9】 所定の有効桁数の数値データを演算する
データ処理装置において、 表データを読み込み、 読み込まれた前記表データ中より数値データを検出し、 検出された前記数値データの有効桁数が前記所定の有効
桁数より大きいかを判別し、 該判別により大きいと判別された数値データの前記所定
の有効桁数を越える桁部分を丸め処理して、該数値デー
タの有効桁数を前記所定の有効桁数と一致させることを
特徴とするデータ処理方法。
9. A data processing device for calculating numerical data of a predetermined number of significant digits, reading table data, detecting numerical data from the read table data, and detecting the number of significant digits of the numerical data. Is greater than the predetermined number of significant digits, and the digit portion exceeding the predetermined number of significant digits of the numerical data determined to be greater than that is rounded to determine the number of significant digits of the numerical data. A data processing method characterized by matching a predetermined number of significant digits.
【請求項10】 計算式を入力し、 入力された前記計算式の計算を実行し、、 入力された前記計算式と、該計算式の前記計算の結果と
を1ファイルとしてメモリに記憶し、 前記メモリに記憶されたファイルを複写またはコンバー
トする際に、ファイル中の式を処理対象から除外して複
写またはコンバートを行なうことを特徴とするデータ処
理方法。
10. A calculation formula is input, the calculation of the input calculation formula is executed, the input calculation formula and the calculation result of the calculation formula are stored in a memory as one file, A data processing method, wherein when copying or converting a file stored in the memory, an expression in the file is excluded from a processing target and copying or conversion is performed.
【請求項11】 セルデータメモリに記憶された、行列
形式の表の各セルに対応するデータに基づいて、表デー
タを作成し、 作成された表データを表データメモリに記憶し、 前記表データメモリに記憶された表データの複写または
コンバートを指示し、 該指示を受けて、前記表データメモリに記憶された表デ
ータのいずれかのセルに対応して、前記セルデータメモ
リにデータが記憶されているかを判別し、 該判別により、いずれのセルに対してもセルデータメモ
リにデータが記憶されていないと判別されたときに、指
示された複写またはコンバートを禁止することを特徴と
するデータ処理方法。
11. The table data is created based on the data corresponding to each cell of the matrix format table stored in the cell data memory, and the created table data is stored in the table data memory. Instructing to copy or convert the table data stored in the memory, and in response to the instruction, the data is stored in the cell data memory corresponding to any cell of the table data stored in the table data memory. Data processing, characterized in that when it is determined that no data is stored in the cell data memory for any of the cells, the instructed copying or converting is prohibited. Method.
JP5161021A 1993-06-30 1993-06-30 Device and method for data processing Pending JPH0778210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5161021A JPH0778210A (en) 1993-06-30 1993-06-30 Device and method for data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5161021A JPH0778210A (en) 1993-06-30 1993-06-30 Device and method for data processing

Publications (1)

Publication Number Publication Date
JPH0778210A true JPH0778210A (en) 1995-03-20

Family

ID=15727085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5161021A Pending JPH0778210A (en) 1993-06-30 1993-06-30 Device and method for data processing

Country Status (1)

Country Link
JP (1) JPH0778210A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058604A (en) * 2005-08-24 2007-03-08 Ricoh Co Ltd Electronic apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058604A (en) * 2005-08-24 2007-03-08 Ricoh Co Ltd Electronic apparatus

Similar Documents

Publication Publication Date Title
US5302967A (en) Figure processing apparatus and method aided by display with ruled lines
JPH087796B2 (en) Character and graphics processor
JP3951492B2 (en) Image processing device
JPH0778210A (en) Device and method for data processing
JPH08185452A (en) Document preparation device
JP2937657B2 (en) Document creation system and printing method thereof
JPS63308624A (en) Displaying method for operating menu
JPH04322324A (en) Data processor
JP3583597B2 (en) Document processing apparatus and recording medium therefor
JPH0496097A (en) Scrolling control system
JP3470974B2 (en) Figure creation method and apparatus
JPH0731671B2 (en) Formula input editing method
JPH0361212B2 (en)
JPH0241557A (en) Format set processing system of layout display
JPH07160692A (en) Document display device
JPH0736765A (en) Device and method for document processing
JPH06251039A (en) Form design system
JPH10187851A (en) Table data output device
JPH11296596A (en) List processor and storing medium
JPH0981767A (en) Graphic processing method and graphic processor
JPS6089234A (en) Character processor
JPH02116959A (en) Document preparing device
JPH03141462A (en) Document processor
JPH0765050A (en) Batch/continuous changing method for cad input character attribute
JPS60207953A (en) Document processor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20020618