Jyotiprakash Mishrablog.jyotiprakash.org·Dec 31, 2023Know your floats better!In C, the primary floating point types are float, double, and long double. The range and number of bits for these types can vary depending on the system and compiler, but they generally adhere to the IEEE 754 standard for floating-point arithmetic. H...Discusslong double
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 31, 2023Be careful with floats!Let's consider a simple example in C where we sum floating-point numbers and compare the result to what we might expect. This example will illustrate how floating-point precision issues can lead to unexpected results. We will sum the floating point n...DiscussC Programmingfloating point values
Namya Shahbigsmoke.hashnode.dev·Sep 13, 2022Python Built In Functionsabs() # Returns the absolute value of a number x = abs(-7.25) print(x) # OUTPUT # 7.25 all() # Returns True if all items in an iterable object are true mylist = [True, True, True] x = all(mylist) print(x) # OUTPUT # True any() # Retur...Discuss·10 likes·57 readsPython
Vipul Vishwakarmavipulvishwakarma.hashnode.dev·Jun 23, 2022All About Numbers In JavascriptIntroduction In the previous part, we have learned about the different types of data types in javascript. Part-1 we will deep dive into the Number data type in this part In Other Programming (statically typed) languages like Java or C have differe...Discuss·13 likes·258 readsJavaScript