Soporte de The Movie Database

Today the movie Jack Reacher reports a vote average of 4.36 in the discover endpoint.

However in the movie endpoint the average is reported as 4.3.

Is the truncation (not rounding) intentional? I can mimic the same in my application but want to make sure it won't be changing or understand why it is reported differently.

Thanks!

1 respuesta (en la página 1 de 1)

Jump to last post

What you're seeing is more likely a cache difference. I just cleared the cache now both are reporting 4.3. The website and get info methods (Ruby) both round to a single decimal while the search/discover/featured list methods (Lua) round to 2 decimals. There's a reason for this and the long and short of it is because of the ay Lua wants to round floats. Getting it to round the same way Ruby does proved to be surprisingly difficult, so for now they're different.

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión