You're viewing version 1.2.0 of int. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16
  • (int x)
Coerce to int

1 Example top

  • user=> (int 1)
    1
    
    user=> (int 1M)
    1
    
    user=> (int 1.2)
    1
    
    user=> (int \1)
    49
    
    user=> (int \a)
    97
    
    user=> (int "1")
    java.lang.ClassCastException: ...
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Comments top

No comments for int. Log in to add a comment.