Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

== primitive  RSS feed

 
Shiva Mohan
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a basic question.


widening conversion happened to the long at lin5 .so long is changed to double before == test.But when i printed out the x value that is giving only long value.(not giving double value)Why?
 
Marcos R Oliveira
Ranch Hand
Posts: 62
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When long is changed to double before == test, it does not change the x type, nor this long is assigned to anything.
[ January 18, 2007: Message edited by: Marcos R Oliveira ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!