Doubt regarding platform dependent behavior of Floating point numbers

shalini_goel14

shalini_goel14

@shalini-goel14-ASmC2J • Oct 7, 2024

Hi all,

Yesterday I was going through some stuff and found that behavior of floating point numbers in most of the programming languages is platform dependent at times. Is there any specific reason behind this why such thing happens ? Any compiler experts here have ideas about my this stupid question ?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • shalini_goel14

    shalini_goel14

    @shalini-goel14-ASmC2J Jun 3, 2009

    No answers for my doubt? Where are the genius minds of CE gone? 😔

  • manusaluja

    manusaluja

    @manusaluja-BMWMnB Jun 3, 2009

    Good Question, although i havent thought about that, but somewhere i studied in java that to ensure that a floating point value as platform independent, we use strictfp.

    Anyways will try to find out more details about that and will share with you guys,

  • shalini_goel14

    shalini_goel14

    @shalini-goel14-ASmC2J Jun 4, 2009

    manusalujaAnyways will try to find out more details about that and will share with you guys,

    Thanks manu but Please be genric in details -this doubt is not Java-specific. 😀