Informatiker Board (http://www.informatikerboard.de/board/index.php)
- Themengebiete (http://www.informatikerboard.de/board/board.php?boardid=1)
-- Theoretische Informatik (http://www.informatikerboard.de/board/board.php?boardid=5)
--- Logarithmus (http://www.informatikerboard.de/board/thread.php?threadid=2561)
Geschrieben von Vanessa am 13.11.2015 um 08:49:
Logarithmus
Was ist bitte der "ganzzahlige Teil des Logarithmus"? Und welche Nummer soll bestimmt werden?
aufgabe:
"Implementieren Sie eine Methode int log10(int number), die den ganzzahligen Teil des Logarithmus zur Basis 10 einer Zahl number bestimmt. "
Geschrieben von eulerscheZahl am 13.11.2015 um 09:01:
Du sollst das Ergebnis einfach abrunden.
![[latex]\lfloor\log_{10}(x)\rfloor[/latex]](http://www.matheboard.de/latex2png/latex2png.php?\lfloor\log_{10}(x)\rfloor)
Geschrieben von Karlito am 13.11.2015 um 10:09:
Tipp: Es gibt einen Zusammenhang zwischen der Anzahl der Stellen einer Zahl und dem ganzzahligen dekadischen Logartihmus.
Gruß,
Karlito
Forensoftware: Burning Board, entwickelt von WoltLab GmbH