Skip to content

Commit

Permalink
- cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jczaja committed May 15, 2024
1 parent b0592d1 commit 1e5a35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/divforecasting/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ fn forecast_dividend_stocks(
max_y = *x;
}
format!(
"{name}(DIV Yield[%]: {:.2}, DYG 5G[%]: {:.2}, Price[$]: {:.2}) (Stock[$]: {:.2}, Payout[$]: {:.2} ,Payout2Investment[%]: {:.2}, Total Dividends Gains[$]: {:.2} )",dy*100.0,dyg*100.0,share_price, capital, final_payout,(final_payout/base_capital)*100.0,x
"{name}(DIVY[%]: {:.2}, DYG 5G[%]: {:.2}, Price[$]: {:.2}) (Stock[$]: {:.2}, Payout[$]: {:.2} ,Final DIVY[%]: {:.2}, Total Payout[$]: {:.2} )",dy*100.0,dyg*100.0,share_price, capital, final_payout,num_capitalizations as f64*(final_payout/base_capital)*100.0,x
)},
None => panic!("Error: No dividend data to plot!"),
};
Expand Down

0 comments on commit 1e5a35b

Please sign in to comment.