The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
(11C) Covert Between A.D. & B.E.
02-08-2022, 07:12 AM (This post was last modified: 02-08-2022 11:11 AM by Gamo.)
Post: #1
(11C) Covert Between A.D. & B.E.
The terms anno Domini (AD) and before Christ (BC) are used to
label or number years in the Julian and Gregorian calendars.

The terms Buddhist Calendar (BE) primarily used in mainly South and Southeast Asian countries
such as Cambodia, Laos, Sri Lanka, Myanmar and Thailand as well as in
Chinese populations of Malaysia, Singapore and Vietnam for religious or official occasions.

-------------------------------------------------

This HP-11C or 15C program demonstrate with the use of the " Flag " function commonly
use on converting the Measurement Units illustrated on many HP User's Manual.

This simple program is converting both type of years between AD and BE

Usage: [FIX] 0 [USER]

[A] convert AD to BE
[B] convert BE to AD

Example:

Convert 2022 AD to BE

2022 [A] display 2565

Answer: 2022 AD is 2565 BE

--------------------------------

Convert 2543 BE to AD

2543 [B] display 2000

Answer: 2543 BE is 2000 AD
-------------------------------
Program:
Code:

LBL A  // AD to BE
SF 0
LBL 0
543
F0
GTO 1

RTN
LBL B  // BE to AD
CF 0
GTO 0
LBL 1
+
RTN

Gamo 2 / 2022 AD and 2565 BE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(11C) Covert Between A.D. & B.E. - Gamo - 02-08-2022 07:12 AM



User(s) browsing this thread: 1 Guest(s)