Is it possible to use decimal on fees going to liquidity and reflection?

Dear,

I’m pretty new to solidity and I can’t seem to find my question anywhere else.
My question is if it is possible to change the:

uint256 public _taxFee = 5;
uint256 private _previousTaxFee = _taxFee;

uint256 public _liquidityFee = 5;
uint256 private _previousLiquidityFee = _liquidityFee;

To:

uint256 public _taxFee = 2,8;
uint256 private _previousTaxFee = _taxFee;

uint256 public _liquidityFee = 8,3;
uint256 private _previousLiquidityFee = _liquidityFee;

Also if it is possible to do decimal fees, do you have to use a comma or fullstop?
Below I have an example of the solidity code of SafeMoon:

Would really appreciate if someone can help me out :slight_smile:

Kind regards,

Gino

1 Like

To use decimals like 2.8% you must do the following:
set _taxFee = 28

and when you will calculate it divide per 1000 not per 100

2 Likes

Thanks for your reply!

I want to learn solidity but I didn’t really find any good tutorial.
Do you know any good tutorial for learning solidity?

1 Like

i suggest this:

3 Likes

Thanks for your reply!

I already saw this, but I want to make a solidity smart contract. Isn’t this something else?

Kind regards,

Gino

1 Like

It is to learn. If you follow it you wil know how to do it

2 Likes

Alright!

Thanks for your help <3

1 Like