Here you can find the source of timecents2seconds(int timecents)
Parameter | Description |
---|---|
timecents | [-32768...+32767] |
public static final double timecents2seconds(int timecents)
//package com.java2s; public class Main { /**//from w ww. ja v a 2s .co m * @param timecents [-32768...+32767] * @return the converted timecents, in seconds */ public static final double timecents2seconds(int timecents) { if (timecents <= -32768) { return 0.0; } // TODO: use a table return Math.pow(2.0, timecents / 1200.0); } }