Modulus of two Float or Double NumbersIn this tutorial, we will learn how to determine the remainder of two floating-point numbers. Examples: C Program: Output: remainder(123456789.100000,1233.100000) = 50.200000 remainder(10,3) = 1.000000 remainder(10.230000,3.100000) = 0.930000 C++ Program: Output: 0.5 To find the modulus of two floating-point values, we can utilise the built-in fmod function. C++ Program: Output: 0.5
Next TopicTop 10 C++ Project Ideas for Beginners
|
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week