Post Reply 
(42S) (& 41C): Ceiling (& Floor) Function Programme
01-31-2017, 09:20 PM (This post was last modified: 01-31-2017 09:21 PM by Didier Lachieze.)
Post: #2
RE: HP 42S: Ceiling Function Programme
Using only the stack registers X & L:
Code:
00.    { 23-Byte Prgm }
01.    LBL “CEIL”
02.    X<=0?
03.    GTO 01
04.    SIGN
05.    RCL+ ST L
06.    FP
07.    X=0?
08.    DSE ST L
09.    X<> ST L
10.    LBL 01
11.    IP
12.    END
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 42S: Ceiling Function Programme - Didier Lachieze - 01-31-2017 09:20 PM



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