Obsidian Bases: Formula for star ratings with half stars

I recently started using Obsidian and have been enjoying the Bases feature, which lets you create database-like views using structured notes.