Community Questions & Answers

Math in .tss

Doesn't look like Math is working in .tss files for Alloy development. Shouldn't I be able to do something like this: ~~~ '#value[platform=android]' : { top : 90, font : { fontFamily : 'Roboto-Thin', fontSize :...

What is the math for a rating system?

I'm trying to make a 5 star rate system... but I don't know how to do the maths to calculate and display the rate... eg: ~~~ var rateView = Ti.UI.createView(), max = 5, min = 1; // used in the flexMin and flexMax var numRates = 0 function rate(v)...

Why does json.parse make my decimals huge?

Previously we had only been returning whole numbers from our API but updated to do decimals now as well. The server is rounding to the nearest tenth but the app is showing unrounded long decimals and I can't figure out why. Here is an example: ~~~ var...

Formatting Decimals

I've been putting together an app that contains several calculators for medical equations, but one problem I've run into is that when I perform a calculation, the answer that gets spit out is in scientific format with about 15 decimal points (ex. 6.5...

Showing 1-13 of 13