Convert Decimal Integer to String

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
roonyrooxcess
Posts: 61
Joined: 20 Nov 2020, 21:29

Convert Decimal Integer to String

18 Nov 2021, 17:42

Hi, im trying to set an editbox with decimal points but the editbox keeps rounding them up ... The only work around i can think of, is to convert it to a string, but cant find any info on how to ...

Ive tried DivideBuyPriceBy100=%DivideBuyPriceBy100%, but the editbox keeps rounding up, when i send the sum to the editbox

Thanks!

My code :

Code: Select all

BuyPrice:=0.00004318

setformat, float, 3.08
BuyPrice +=0

DivideBuyPriceBy101:=BuyPrice*10000
setformat, float, 3.08
DivideBuyPriceBy101 +=0

DivideBuyPriceBy100:=DivideBuyPriceBy101/10000
setformat, float, 3.08
DivideBuyPriceBy100 +=0

ControlSetText, Edit21, %DivideBuyPriceBy100%,BuyGui1 ; Also Set In Mainpricetable2


teadrinker
Posts: 4412
Joined: 29 Mar 2015, 09:41
Contact:

Re: Convert Decimal Integer to String

18 Nov 2021, 20:57

ControlSetText sends text as a string. You can try adding a space at the end.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], Rohwedder, tabr3 and 182 guests