Skip to content

Conversation

@GoryachayaG
Copy link

Идеально

Copy link
Author

@GoryachayaG GoryachayaG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Идеальный код! У тебя великое будущее разработчика:)


double calculateComplexPercent(double amount, double annualRate, int depositPeriod) {
private double calculateComplexPercent(double amount, double annualRate, int depositPeriod) {
double pay = amount * Math.pow((1 + annualRate / 12), 12 * depositPeriod);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Привет! 1 отступ = 4 пробела. Почему-то мне кажется, что последующая строка должна быть с отступом 8 пробелов. Но может я ошибаюсь и это используется только при переносе на новую строку?
Здесь 7 пробелов


double calculateSimplePercent(double amount, double annualRate, int depositPeriod) {
private double calculateSimplePercent(double amount, double annualRate, int depositPeriod) {
return roundNumber(amount + amount * annualRate * depositPeriod, 2);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а здесь 8 пробелов

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants