Highlighted

clean decimals from the layer that sumes two sliders values

Community Beginner ,
Mar 30, 2020

Copy link to clipboard

Copied

help.JPG

 

Hello, 

I am havind difficulties with decimals. I'm trying to remove the decimals in this expression and i have tried it in many ways, adoptating other solutions i have found here, but it's not working.

 

Can someone help me please.

Tks

i

Topics

Expressions, FAQ, How to, Resources

Views

207

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

clean decimals from the layer that sumes two sliders values

Community Beginner ,
Mar 30, 2020

Copy link to clipboard

Copied

help.JPG

 

Hello, 

I am havind difficulties with decimals. I'm trying to remove the decimals in this expression and i have tried it in many ways, adoptating other solutions i have found here, but it's not working.

 

Can someone help me please.

Tks

i

Topics

Expressions, FAQ, How to, Resources

Views

208

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mylenium LATEST
Most Valuable Participant ,
Mar 30, 2020

Copy link to clipboard

Copied

Eas enough using toFixed():

 

mVal=val1+val2;

mVal.toString().toFixed(0);

 

Mylenium

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...