Why does replit incorrectly evaluate base 10 logs using the c++ log() function?

Problem description:
Replit does not correctly evaluate base 10 logs within my code

Expected behavior:
log(100)==2

Actual behavior:
log(100)==4.60517

Steps to reproduce:
create a c++ code that has cout << log(100); and then compile and run

Bug appears at this link:
https://replit.com/@jen374/Assign2#A2Q6.cpp

Browser/OS/Device:

web browser version Windows 11 device

use log10 instead of just log

4 Likes

Oh okay. Thank you very much

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.