C++ Math nexttoward()The nexttoword() function represents the next representable value in a specific direction. The nextafter() and nexttoward() both the functions work similar and return the same value. The only difference occurs in their syntax. SyntaxParameter( from , to ) : These are the floating point values. Return value
ExampleLet's see a simple example. Output: Values of from and to are:0, -1 -3.6452e-4951 In the above example, the 'from' and 'to' are of different type. The nexttoward() function returns the value i.e -3.6452e-4951.
Next TopicC++ Math Functions
|
JavaTpoint offers too many high quality services. Mail us on h[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