KR900007424B1 - Register - Google Patents

Register Download PDF

Info

Publication number
KR900007424B1
KR900007424B1 KR1019870014007A KR870014007A KR900007424B1 KR 900007424 B1 KR900007424 B1 KR 900007424B1 KR 1019870014007 A KR1019870014007 A KR 1019870014007A KR 870014007 A KR870014007 A KR 870014007A KR 900007424 B1 KR900007424 B1 KR 900007424B1
Authority
KR
South Korea
Prior art keywords
mode
decimal point
processing
rounding
port
Prior art date
Application number
KR1019870014007A
Other languages
Korean (ko)
Other versions
KR890010777A (en
Inventor
김형규
Original Assignee
삼성전자 주식회사
안시환
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 삼성전자 주식회사, 안시환 filed Critical 삼성전자 주식회사
Priority to KR1019870014007A priority Critical patent/KR900007424B1/en
Publication of KR890010777A publication Critical patent/KR890010777A/en
Application granted granted Critical
Publication of KR900007424B1 publication Critical patent/KR900007424B1/en

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

A cash registor with a mode key (40) which modes are sale calculation mode (R mode) and fraction code memory mode (P mode). In P mode, the input data for mode selection is stored in certain address of a memory (30) through a C port. The mode key may be set at 1 for raising the fractions, 2 for disregarding the fractions, and 3 for rounding off the fraction. The calculation is performed by the set value.

Description

소숫점이하 연산처리 선택기능을 가진 금전등록기Cash register with sub-point calculation processing

제1도는 본 발명 금전등록기의 구성도.1 is a block diagram of a cash register of the present invention.

제2도는 본 발명 금전등록기에 적용되는 플로우챠트.2 is a flowchart applied to the cash register of the present invention.

본 발명은 금전등록기에 있어서 사용시에 발생하는 소숫점 이하의 금액에 대한 연산처리 선택기능을 가진 금전등록기에 관한 것이다.The present invention relates to a cash register having an operation processing selection function for an amount of money below the decimal point generated in use in a cash register.

종래의 %계산기능을 가지고 있는 금전등록기에서는 %계산을 해서 산출된 금액 중 소숫점 이하는 버리는 방식을 취함으로써 금액의 계산이 부정확하고 또한 금전등록기 사용자가 일방적으로 손해를 입는 경우가 발생하였다. 예로서 250원짜리 제품에 15%의 세금을 부가하여 판매할 경우에는 제품의 가격은 250+(250×15%)=287.5원이다. 그러나 소숫점 이하는 버림으로 인하여 금전등록기는 287원에 판매를 행하게 되고, 상기한 손실이 누적될 경우에 금전등록기 사용자는 상당한 손해를 보게된다.In the conventional cash register having a% calculation function, the calculation of the amount of money is inaccurate and the user of the cash register is unilaterally damaged by taking a method of discarding less than a decimal point among the amounts calculated by the% calculation. For example, if the product is sold with a tax of 15% on a 250 won product, the price of the product is 250+ (250 × 15%) = 287.5 won. However, the cash register is sold for 287 won due to the discarding of the decimal point, and when the above-mentioned losses accumulate, the user of the cash register suffers a considerable loss.

본 발명 금전등록기는 상기한 문제점을 해결하기 위하여 안출한 것으로서, 본 발명의 목적은 %계산 결과로 산출된 금액중 소숫점 이하의 금액에 대해 올림, 버림, 반올림 중 한가지를 선택하여 금전등록기에 미리 기억시켜두고 실제 판매시 발생한 금액을 미리 기억된 상태에 따라 처리함으로써 판매자의 금전적 손실을 개선하고자 하는 것이다.The cash register of the present invention is devised to solve the above problems, and an object of the present invention is to select one of rounding, rounding, and rounding for an amount less than or equal to a decimal point among the amounts calculated as a% calculation result and storing the cash register in advance in the cash register. It is intended to improve the seller's financial loss by processing the amount generated during the actual sale according to the pre-remembered state.

이하 첨부된 도면에 의하여 본 발명을 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

제1도를 참조하여 본 발명 금전등록기의 구성을 설명하면 다음과 같다. %계산 결과로서 발생된 소숫점이하의 금액처리방식을 기억시키고 연산처리 할 수 있는 키를 포함함 키보드(20)를 중앙처리장치(10)와 포트 A 및 포트 B를 통하여 접속시키고, 금액처리방식을 미리 기억시킬 수 있는 메모리(30)를 중앙처리장치(10)의 포트 C를 통하여 접속한다. 처리코드값을 미리 기억시킬 수 있는 메모리(30)의 특정번지는 1000번지로 지정한다.Referring to Figure 1, the configuration of the present invention cash register is as follows. A key for storing and processing the amount of money below the decimal point generated as a result of% calculation is included. The keyboard 20 is connected to the central processing unit 10 through ports A and B, and the amount of money is processed. The memory 30 that can be stored in advance is connected through the port C of the central processing unit 10. The specific address of the memory 30 capable of storing the processing code value in advance is designated as 1000 address.

처리코드값의 기억은 P모드에서 처리하고 실제판매시의 연산처리는 R모드에서 처리하기 위해 모드키(40)를 포트 A와 포트 B를 통하여 중앙처리장치(10)와 접속시키고, 연산결과를 표시하고 인자하기 위하여 표시장치 및 프린터를 중앙처리장치(10)와 접속한다.In order to store the processing code value in the P mode and to carry out the operation processing at the actual sale, the mode key 40 is connected to the central processing unit 10 through the port A and the port B. A display device and a printer are connected with the central processing unit 10 to display and print.

본 발명의 동작상태를 상기한 제1도의 구성과 첨부된 제2도의 플로우챠트를 참조하여 설명한다. 중앙처리장치(10)는 포트 A와 포트 B를 통하여 모드키의 내용을 읽어들이며 모드키가 P의 위치에 있으면 소숫점이하 금액처리방식에 대한 프로그램을 다음과 같이 수행한다.The operating state of the present invention will be described with reference to the configuration of FIG. 1 and the flowchart of FIG. The central processing unit 10 reads the contents of the mode key through the port A and the port B. If the mode key is located at the position of P, the central processing unit 10 executes the program for the amount processing method below the decimal point as follows.

포트 A와 포트 B를 통하여 키보드(20)에서 입력된 데이터를 중앙처리장치(10)가 해석하고, 해석된 내용이 소숫점이하 금액처리방식에 대한 내용(이하 코드라칭함)일 경우 중앙처리창치(10)는 이 내용을 포트 C를 통하여 메모리(30)의 일정번지(1000번지)에 기억시킨다. 이때 코드값이 1인경우는 소숫점이하자리를 올림처리, 2인경우는 내림처리,3인경우는 반올림처리로 정한다.The central processing unit 10 interprets the data input from the keyboard 20 through the port A and the port B, and when the interpreted content is the content of the amount processing method below the decimal point (hereinafter referred to as code), the central processing unit value ( 10 stores this content in a certain address (address 1000) of the memory 30 through the port C. If the code value is 1, the decimal point is rounded up, if it is 2, it is rounded down; if it is 3, it is rounded up.

그다음 중앙처리장치(10)는 모드키(40)와 키보드(20)의 내용을 계속 읽으면서 해당처리를 하게 되는데, 이때 모드키가 R의 위치에 있고 키보드의 %키가 입력되면 중앙처리장치는 다음과 같은 순서로 소숫점 이하 금액에 대한 연산처리를 한다.Then, the CPU 10 reads the contents of the mode key 40 and the keyboard 20 and performs the corresponding processing. At this time, when the mode key is located at R and the% key of the keyboard is input, the CPU Calculate the amount below the decimal point in the following order.

먼저, 현재 판매된 금액과 입력된 %를 곱하여 %계산을 하고, %계산결과 소숫점 이하 금액이 발생되면 메모리 (30)의 1000번지에 미리 기억시켜둔 코드내용을 포트 C를 통하여 읽어들인다. 이어서 메모리(30)의 1000번지에서 읽은내용이 코드 1인 경우에는 %계산금액중 소숫점 이하 금액을 버리고 소숫점 바로 앞의 금액에 1을 더하여 올림처리를 하고, 코드 2인 경우에는 소숫점 이하의 금액을 무조건 버리는 버림처리를 하며, 코드 3인 경우에는 소숫점이하 첫자리의 내용을 체크해서 반올림 처리를 한다. 따라서 본 발명이 목적하는 소숫점 이하의 금액에 대한 처리를 올림, 버림, 반올림 등 세가지로 수행할 수 있는 금전등록기를 제공할 수 있으며, 또한 %계산결과 소숫점이하의 금액에 대한 처리뿐만 아니라 우리나라와 같이 10원미만의 원단위 화폐가 거의 사용되고 있지 않는 경우에는 원단위의 금액처리를 위해서도 본 발명의 금전등록기를 적용할 수 있다.First, multiply the currently sold amount by the input% and calculate the%, and when the calculation results in the amount less than the decimal point, the code content stored in advance in the 1000 address of the memory 30 is read through the port C. Subsequently, if the content read from the address 1000 of the memory 30 is code 1, the amount less than or equal to the decimal point is discarded, and 1 is added to the amount immediately before the decimal point, and in the case of code 2, the amount less than or equal to the decimal point is read. Unconditional discarding is done. In the case of code 3, rounding is performed by checking the contents of the first digit after the decimal point. Therefore, the present invention can provide a cash register that can perform three kinds of processing for the amount less than the desired decimal point, such as rounding up, rounding down, and rounding. If less than 10 won currency is rarely used, the cash register of the present invention can be applied to the processing of the amount of money.

상기한 바와같이 본 발명에 의하면 %연산결과 발생되는 소숫점이하 금액을 무시하는 종래의 기술을 개선하여 금전등록기의 사용자가 상황에 따라 올림, 버림, 반올림 중 한가지를 선택하여 판매처리할 수 있도록 함으로써 금전등록기를 통하여 물건을 판매하는 사용자가 금전적 불이익을 당하는 경우를 해소시킬 수 있는 이점이 있다.As described above, according to the present invention, by improving the conventional technology of ignoring the amount of the decimal point generated as a result of% calculation, the user of the cash register can select one of rounding up, rounding down, and rounding according to the situation to sell the money. There is an advantage that can solve the case that the user who sells the goods through the registrant is financially disadvantaged.

Claims (1)

금액처리방식을 기억시키고 연산처리할 수 있는 키보드(20)와 판매연산처리(R모드) 및 처리코드값기억(P모드)를 선택하는 모드키(40)를 중앙처리장치의 포트 A와 포트 B를 통하여 접속하고 처리코드값을 기억시키는 메모리를 중앙처리장치(10)의 포트 C를 통하여 접속하여, P모드에서 키보드(20)로 부터 입력되는 소숫점 이하 연산방식 코드값을 메모리(30)의 특정번지에 기억시키고 R모드에서 %계산시에 소숫점 이하의금액이 발생하면 메모리(30)에 기억된 코드값에 따라 소숫점이하의 금액에 대하여 올림처리, 내림처리, 반올림처리를 선택적으로 수행하는 것을 특징으로 하는 소수점이하 연산처리 선택기능을 가진 금전등록기.A keyboard 20 capable of storing and processing the amount of money processing and a mode key 40 for selecting sales operation processing (R mode) and processing code value storage (P mode) include port A and port B of the central processing unit. Through the port C of the central processing unit 10 to connect a memory for storing the processing code value, and to specify the sub-point arithmetic operation code value input from the keyboard 20 in the P mode. If the amount less than or equal to the decimal point is generated at the time of calculating the% in the R mode in the R mode, the rounding, the rounding, and the rounding process are selectively performed for the amount less than or equal to the decimal point according to the code value stored in the memory 30. A cash register with a decimal point arithmetic processing selection function.
KR1019870014007A 1987-12-09 1987-12-09 Register KR900007424B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019870014007A KR900007424B1 (en) 1987-12-09 1987-12-09 Register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019870014007A KR900007424B1 (en) 1987-12-09 1987-12-09 Register

Publications (2)

Publication Number Publication Date
KR890010777A KR890010777A (en) 1989-08-10
KR900007424B1 true KR900007424B1 (en) 1990-10-08

Family

ID=19266762

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019870014007A KR900007424B1 (en) 1987-12-09 1987-12-09 Register

Country Status (1)

Country Link
KR (1) KR900007424B1 (en)

Also Published As

Publication number Publication date
KR890010777A (en) 1989-08-10

Similar Documents

Publication Publication Date Title
US4651279A (en) Information recording system with multiple levels of data access
US4262333A (en) Holding of a transaction identifying signal in a teller machine
US4800493A (en) Electronic cash register
KR900007424B1 (en) Register
JPS63303495A (en) Transaction processor
US4949258A (en) Transaction processor which derives a commodity code from an article code and stores sales of data of both
JP3133361B2 (en) Product sales data processing device
JPH0631593Y2 (en) Sales data processor
KR920004758B1 (en) Method of discount sale for cash register
JPH01246664A (en) Data processor
JPS59183464A (en) Electronic cash register
KR910007770B1 (en) Register processing method of product article selling by scale unit at electronic cash register
KR790001246B1 (en) Electronic selling register usable as electronic computer
JPH06195353A (en) Amount data change processing system
KR0164539B1 (en) Information searching method
JP2637066B2 (en) Product sales data processing device
JPS62164195A (en) Pos terminal
JPS59153262A (en) Electronic cash register
JPS63132396A (en) Electronic cash register
JPH041890A (en) Receipt issuing device
JPH08202946A (en) Display device of cash register
JPS63225897A (en) Transaction processor
JPS60122460A (en) Electronic calculator
JPH01265352A (en) Compact electronic computer
JPH04278424A (en) Commodity sales processing apparatus

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20000929

Year of fee payment: 11

LAPS Lapse due to unpaid annual fee