Post Reply 
(42S) (& 41C): Ceiling (& Floor) Function Programme
02-01-2017, 06:14 AM
Post: #3
RE: HP 42S: Ceiling Function Programme
Bravo Didier!

This version is shorter but yours is more elegant.

Code:

0.    { 22-Byte Prgm }
1.    LBL “CEIL”
2.    X≤0?
3.    GTO 00
4.    STO "1"
5.    FP
6.    X≠0?
7.    SIGN
8.    RCL+ "1"
9.    LBL 00
10.    IP
11.    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 - Gerald H - 02-01-2017 06:14 AM



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