---
title: "latToUnit | Weather SDK | JavaScript maps SDK"
description: "Documentation for Weather JS"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs-qmgv.pages.dev/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Function latToUnit

-   latToUnit(lat: number): number[](#lattounit)
    
    Converts a latitude in degree into a unit value. See the function here: [https://www.desmos.com/calculator/ptaooqjt8c](https://www.desmos.com/calculator/ptaooqjt8c)
    
    #### Parameters
    
    -   lat: number
    
    #### Returns number
