# Getter value not being pulled through

**URL:** <https://forums.unrealengine.com/t/getter-value-not-being-pulled-through/447596>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 21, 2019, 6:04pm UTC](https://forums.unrealengine.com/t/getter-value-not-being-pulled-through/447596 "2019-04-21T18:04:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![JayFitz91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JayFitz91](https://forums.unrealengine.com/u/JayFitz91)\
**Post date:** [April 22, 2019, 12:35pm UTC](https://forums.unrealengine.com/t/getter-value-not-being-pulled-through/447596/4 "2019-04-22T12:35:05Z")

</div>

I found out why this is not working, I was using the wrong formatting value. My CurrentScore variable is a float so I should have been using %f in the Text. %d is used for integers so if I change the line of code from

```
UE_LOG(LogTemp, Warning, TEXT("Current Score: %d"), GetScore());

```

to

```
UE_LOG(LogTemp, Warning, TEXT("Current Score: %f"), GetScore());

```

The Output Log displays the correct value, more information can be found on the Unreal Wiki below:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

_[View the full topic](https://forums.unrealengine.com/t/getter-value-not-being-pulled-through/447596)._
