Menu

#116 No way to compare two numbers

FlexWiki
open-fixed
nobody
5
2005-12-29
2005-07-12
Anonymous
No

There does not be anyway to compare the values of two
numbers. Can a Compare(x,y) method be added that
compares x to y and returns -1 if x is less, 0 if equal,
and 1 if y is greater?

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Or, in an object world: x.Compare(y), where x and y are
    Integers

     
  • Nobody/Anonymous

    Logged In: NO

    Why not add for strings while we're at it?

     
  • David Ornstein

    David Ornstein - 2005-12-29

    Logged In: YES
    user_id=39729

    Comparison methods have recently been added:
    http://www.flexwiki.com/default.aspx/FlexWiki/InstructionCa
    rd.html?type=Integer

     
  • David Ornstein

    David Ornstein - 2005-12-29
    • status: open --> open-fixed
     

Log in to post a comment.