Post Reply 
CONVERT CMD
05-19-2017, 06:25 PM
Post: #1
CONVERT CMD
HP50
CONVERT( 600_s, 1_min) [ENTER] 10_min

HPprime
CONVERT( 600_s, 1_mn) [ENTER] "Error: Bad argument type" ?
Find all posts by this user
Quote this message in a reply
05-19-2017, 06:42 PM
Post: #2
RE: CONVERT CMD
Try it in home, not in CAS
Find all posts by this user
Quote this message in a reply
05-19-2017, 06:55 PM
Post: #3
RE: CONVERT CMD
on home: Error: Syntax Error
Find all posts by this user
Quote this message in a reply
05-19-2017, 07:00 PM
Post: #4
RE: CONVERT CMD
Because the unit is "min", not "mn"?
Find all posts by this user
Quote this message in a reply
05-19-2017, 07:04 PM (This post was last modified: 05-19-2017 07:09 PM by compsystems.)
Post: #5
RE: CONVERT CMD
The units menu (CAS) put _mn and not _min, Please correct this unit for the next firmware

HPprime (Home mode)
CONVERT( 600_s, 1_min) [ENTER] 10_min
CONVERT(600_s,1_h) [ENTER] 0.166666666667_h

HPprime (CAS mode)
CONVERT( 600_s, 1_min) [ENTER] "Error: Bad argument type"
CONVERT(600_s,1_h) [ENTER] 0.166666666667_h
Find all posts by this user
Quote this message in a reply
05-19-2017, 07:36 PM (This post was last modified: 05-19-2017 07:40 PM by toml_12953.)
Post: #6
RE: CONVERT CMD
(05-19-2017 07:00 PM)KeithB Wrote:  Because the unit is "min", not "mn"?

_min doesn't work in CAS mode. Then again, neither does _mn which is what the CAS mode units menu shows.

I can't make it work in CAS mode no matter which one I use. _s, _h, _d and _yr work.

Tom L

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
05-19-2017, 07:47 PM (This post was last modified: 05-19-2017 07:47 PM by compsystems.)
Post: #7
RE: CONVERT CMD
In my case, if work (on CAS MODE) CONVERT(600_s,1_h), This should also work CONVERT(600_s, 1_min)
Find all posts by this user
Quote this message in a reply
05-19-2017, 09:50 PM (This post was last modified: 05-19-2017 09:50 PM by StephenG1CMZ.)
Post: #8
RE: CONVERT CMD
There is an old thread about using mn in CAS
http://www.hpmuseum.org/forum/thread-492...light=mins

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
05-19-2017, 11:18 PM
Post: #9
RE: CONVERT CMD
Looks like they broke something, if _mn ever worked, which is implied in the thread.
Find all posts by this user
Quote this message in a reply
05-20-2017, 03:32 AM (This post was last modified: 05-20-2017 11:59 AM by Joe Horn.)
Post: #10
RE: CONVERT CMD
In CAS, use convert (typed in lowercase letters) instead of CONVERT (uppercase). Sadly, the Toolbox Catalog types it in uppercase, but it only works in CAS in lowercase. Home accepts both upper and lowercase. Home calls minutes "min" but CAS calls minutes "mn".

Home: convert(1_h,1_min) --> 60_min
Home: CONVERT(1_h,1_min) --> 60_min
CAS: convert(1_h,1_mn) --> 60._mn
CAS: 1_(h)▶_mn --> 60._min (shortcut syntax, CAS Only)

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
05-20-2017, 11:53 AM (This post was last modified: 05-20-2017 11:54 AM by toml_12953.)
Post: #11
RE: CONVERT CMD
(05-20-2017 03:32 AM)Joe Horn Wrote:  In CAS, use convert (typed in lowercase letters) instead of CONVERT (uppercase). Sadly, the Toolbox Catalog types it in uppercase, but it only works in CAS in lowercase. Home accepts both upper and lowercase. Home calls minutes "min" but CAS calls minutes "mn".

Home: convert(1_h,1_min) --> 60_min
Home: CONVERT(1_h,1_min) --> 60_min
CAS: convert(1_h,1_mn) --> 60._mn

Thanks, Joe. I wish the lowercase version was in the catalog!

Tom L

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
05-22-2017, 04:10 PM
Post: #12
RE: CONVERT CMD
CAS MODE

[shift][c] (units) [1] put CONVERT() then 600_s,1_mn returns "Error: Bad argument type"

In CAS MODE this should be convert() and not CONVERT()

convert(600_s,1_mn) returns 10_mn

the HP-Prime development group should think about solving the problem of the catalog and menu functions, ie eliminate the inconsistency (lower/uppercase) of the commands in each mode, making specific catalogs and menus for each HOME / CAS

I'm starting a project in a university with calculators in the classroom (I like HP more than TI), and I want to show a consistent, unambiguous product, I hope this problem is solved soon
Find all posts by this user
Quote this message in a reply
Post Reply 




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