ZenHAX

Free Game Research Forum ... Official QuickBMS support ... Twitter @zenhax ... SSL HTTPS://zenhax.com
It is currently Tue Feb 21, 2017 7:24 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: xmath result as float
PostPosted: Sat Feb 04, 2017 10:34 am 

Joined: Fri May 27, 2016 2:28 pm
Posts: 18
Hello

How with xmath can get result as float?

E.g. my code:
Code:
xmath sndTime "1.0f * subchunk2Size / (bitsPerSample / 8.0f) / numChannels / sampleRate"

xmath sndTime "sndTime - 0.100f"


Vars:
Subchunk2Size 860160

BitsPerSample / 8.0 = 2

NumChannels 1

SampleRate 44100

Result must be ~= 9,752 but xmath return rounded value "9". It's wrong for next calculations with this result.

Is it possible to set a type of "sndTime" var as float?


Top
   
PostPosted: Sat Feb 04, 2017 12:11 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 5513
quickbms works only with integers.


Top
   
PostPosted: Sat Feb 04, 2017 3:04 pm 

Joined: Fri May 27, 2016 2:28 pm
Posts: 18
Maybe possible add support of float values in the next Quick BMS update? For example, it will works only if Quick BMS starting with certain option.
That could be good innovation. I find Quick bms as the perfect tool for more different things.


Top
   
PostPosted: Sat Feb 04, 2017 4:20 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 5513
Unfortunately that's not possible.
Sorry.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited