ascii value and conversions

Issue #508 new
Former user created an issue

Originally reported on Google Code with ID 508

Add a function that reports the value of the specified ascii character.
For example
ascii('A') 
=65


If we want to expand it further we can consider processing full strings and using speedcruch
as utility for conversion.
example

asciiTohex("HELLO")
= 48 45 4C 4C 4F

Reported by ichilem on 2014-06-23 03:31:47

Comments (5)

  1. Former user Account Deleted

    Reported by helder.pereira.correia on 2014-11-28 17:19:37 - Labels added: Type-Enhancement

  2. Former user Account Deleted
    Issue 539 has been merged into this issue.
    

    Reported by helder.pereira.correia on 2014-11-28 17:19:55

  3. Former user Account Deleted
    This would be a very helpful feature, saving me the time consulting the ascii table.
    

    Reported by maurosmartins on 2015-02-16 16:04:00

  4. Pol Welter

    I think this should not be a priority. Adding chars and strings (thus essentially arrays/vectors) and giving SC a multitype engine is a really daunting task. It should be a calculator, not a general purpose programming language! I have said this before, but I am having mixed feelings about matrix/vector/strings in SC.

    Instead of trying to make SpeedCrunch more like existing tools (e.g. python, Matlab) shouldn't we focus on improving the components that the other tools actually lack? Personally, I am using SC because it's small, neat and fast. The requested feature here is IMO badly suited for SC. It will be just as fast to fire up a python shell which can do the exact thing (and a lot more!).

  5. Log in to comment