Jigar3 / Wall-Street

A React Based Web App that allows you to trade virtually
https://wall-street.netlify.com/
36 stars 19 forks source link

Round Off the decimal to 2 places in buyValue of a stock #1

Closed Jigar3 closed 5 years ago

Jigar3 commented 5 years ago

When we fetch the data of the stock from the API, we get a JSON back which contains the latestPrice of the stock, sometimes the value has 3 decimal places. We want that wherever we use the latestPrice, it should be only 2 decimals to maintain homogeniety throughout the application. image

shivam0211 commented 5 years ago

Can I work on this?

Jigar3 commented 5 years ago

@shivam0211 Go ahead

vishnuk7 commented 5 years ago

@Jigar3 Can I work on this?

Jigar3 commented 5 years ago

@shivam0211 Are you still working on this?

shivam0211 commented 5 years ago

Yes

prijeshb commented 5 years ago

@Jigar3 can shares sold in fraction ??

Jigar3 commented 5 years ago

No it can not be sold in fractions

prijeshb commented 5 years ago

should add validation for that !!